cURL
curl --request POST \ --url https://petstore3.swagger.io/api/v3/pet/{petId}/uploadImage \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/octet-stream' \ --data '"<string>"'
{ "code": 123, "type": "<string>", "message": "<string>" }
Upload image of the pet.
The access token received from the authorization server in the OAuth 2.0 flow.
ID of pet to update
Additional Metadata
The body is of type file.
file
successful operation
Was this page helpful?