Petstore icon

Petstore

Interact with Petstore API

Overview

This node uploads a file to update a specific pet's information in the Petstore API. It is useful when you want to associate an image or document with a pet record by specifying the pet's ID and optionally adding metadata about the file. For example, you can upload a photo of a pet to its profile by providing the pet ID and additional descriptive metadata.

Properties

Name Meaning
Pet Id The unique identifier of the pet to which the file will be uploaded. This is required to specify which pet record to update.
Additional Metadata Optional extra information about the file being uploaded, sent as a query parameter to provide context or description for the file.

Output

JSON

  • id - The ID of the pet associated with the uploaded file.
  • name - The name of the uploaded file.
  • url - The URL where the uploaded file can be accessed.

Dependencies

Troubleshooting

  • Ensure the Pet Id provided exists in the Petstore system; otherwise, the upload will fail with a not found error.
  • If the file is not properly attached or missing, the node will error out; verify the binary data input is correctly set.
  • Check network connectivity to the Petstore API endpoint to avoid timeout or connection errors.
  • If additional metadata contains special characters, ensure it is URL-encoded to prevent query parameter issues.

Links

  • Petstore API Documentation - Official API documentation for the Petstore service, useful for understanding endpoints and data formats.

Discussion