View Categories

Uploads an image.

< 1 min read

POST/pet/{petId}/uploadImage

Code Samples #

  • 💻 cURL
  • 📄 JavaScript
  • 🐍 Python
  • 🐘 PHP
  • 🔷 C#
  • Java
Copy
curl --request POST \
  --url '/api/v3/pet/{petId}/uploadImage' \
  --header 'Authorization: Bearer YOUR_TOKEN'

Upload image of the pet.

Path Parameters #

NameTypeRequiredDescription
petIdinteger (int64)RequiredID of pet to update

Query Parameters #

NameTypeRequiredDescription
additionalMetadatastringOptionalAdditional Metadata

Request Body #

Content type: application/octet-stream

Responses #

200 — successful operation #

FieldTypeRequiredDescription
codeinteger (int32)Optional
typestringOptional
messagestringOptional
📋
Example 200 response
Copy
{
    "code": 1,
    "type": "string",
    "message": "string"
}

400 — No file uploaded #

404 — Pet not found #

default — Unexpected error #

Response #

200
{
    "code": 1,
    "type": "string",
    "message": "string"
}

Powered by BetterDocs

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is registered on wpml.org as a development site. Switch to a production site key to remove this banner.