Petstore icon

Petstore

Interact with Petstore API

Overview

This node updates an existing pet's information in the Petstore API. It is useful for managing pet records by modifying details such as the pet's name, category, photos, tags, and status. For example, a user can update a pet's status from 'available' to 'sold' or change its category from 'Dogs' to another classification.

Properties

Name Meaning
Id The unique identifier of the pet to update.
Name The new name of the pet.
Category The category object describing the pet's classification, e.g., Dogs.
Photo Urls An array of URLs pointing to photos of the pet.
Tags An array of tag objects associated with the pet.
Status The current status of the pet in the store.

Output

JSON

  • id - The unique identifier of the updated pet.
  • name - The updated name of the pet.
  • category
    • id - The category ID of the pet.
    • name - The category name of the pet.
  • photoUrls - An array of photo URLs associated with the pet.
  • tags - An array of tags associated with the pet.
  • status - The updated status of the pet.

Dependencies

Troubleshooting

  • Ensure the 'Id' property corresponds to an existing pet; otherwise, the update will fail.
  • The 'Name' and 'Photo Urls' fields are required; missing these may cause errors.
  • JSON fields like 'Category', 'Photo Urls', and 'Tags' must be valid JSON strings; invalid JSON will cause parsing errors.
  • Check API authentication credentials if requests fail due to authorization errors.
  • Verify the 'Status' value is one of the allowed options: 'available', 'pending', or 'sold'.

Links

Discussion