cURL
curl --request POST \ --url https://petstore3.swagger.io/api/v3/pet/{petId} \ --header 'Authorization: Bearer <token>'
{ "name": "doggie", "photoUrls": [ "<string>" ], "id": 10, "category": { "id": 1, "name": "Dogs" }, "tags": [ { "id": 123, "name": "<string>" } ], "status": "available" }
Updates a pet resource based on the form data.
The access token received from the authorization server in the OAuth 2.0 flow.
ID of pet that needs to be updated
Name of pet that needs to be updated
Status of pet that needs to be updated
successful operation
"doggie"
10
Show child attributes
1
"Dogs"
pet status in the store
available
pending
sold
Was this page helpful?