https://petstore3.swagger.io/api/v3/pet/{petId}Updates a pet's information in the store using form data, allowing for modifications to various attributes.
ID of pet that needs to be updated
Name of pet that needs to be updated
Status of pet that needs to be updated
Schema
{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [],
"tags": [],
"status": "example_status"
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}curl --request POST \
--url 'https://petstore3.swagger.io/api/v3/pet/{petId}' \
--header 'accept: application/json' \
--header 'content-type: application/json'{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}https://petstore3.swagger.io/api/v3/pet/{petId}Updates a pet's information in the store using form data, allowing for modifications to various attributes.
ID of pet that needs to be updated
Name of pet that needs to be updated
Status of pet that needs to be updated
Schema
{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [],
"tags": [],
"status": "example_status"
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}curl --request POST \
--url 'https://petstore3.swagger.io/api/v3/pet/{petId}' \
--header 'accept: application/json' \
--header 'content-type: application/json'{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}