Actions17
Overview
This node operation updates an existing pet's information in the Petstore API using form data. It is useful when you need to modify a pet's details such as its name or status by specifying the pet's unique ID. For example, you can update a pet's status to 'available' or change its name by providing the corresponding values.
Properties
| Name | Meaning |
|---|---|
| Pet Id | The unique identifier of the pet to update. This is required to specify which pet record to modify. |
| Name | The new name to assign to the pet. This is sent as a query parameter in the update request. |
| Status | The new status of the pet (e.g., available, pending, sold). This is sent as a query parameter in the update request. |
Output
JSON
id- The unique identifier of the updated pet.name- The updated name of the pet.status- The updated status of the pet.category- Category information of the pet.photoUrls- Array of photo URLs associated with the pet.tags- Tags associated with the pet.
Dependencies
- Petstore API (https://petstore3.swagger.io/api/v3)
Troubleshooting
- Ensure the Pet Id provided exists in the Petstore database; otherwise, the update will fail with a 'not found' error.
- Verify that the API credentials (if used) are valid and have permission to update pet data.
- Check that the 'Name' and 'Status' fields are correctly formatted as strings; invalid types may cause request errors.
- If the API returns a 415 Unsupported Media Type error, confirm that the Content-Type header is set to 'application/json' or the appropriate form data type.
Links
- Petstore API Documentation - Official API documentation for the Petstore service, detailing endpoints and data models.