Skip to content

Updates a pet in the store with form data.

POST
/pet/{petId}
curl -X POST 'https://petstore3.swagger.io/api/v3/pet/0?name=string&status=string'

Updates a pet resource based on the form data.

petId
required
integer format: int64

ID of pet that needs to be updated

name
string

Name of pet that needs to be updated

status
string

Status of pet that needs to be updated

Successful operation

object
category
object
id
integer format: int64
name
string
id
integer format: int64
name
required
string
photoUrls
required
Array<string>
status

Pet status in the store

string
Allowed values: available pending sold
tags
Array<object>
object
id
integer format: int64
name
string
Example
{
"category": {
"id": 1,
"name": "Dogs"
},
"id": 10,
"name": "doggie",
"status": "available"
}

Invalid input

Unexpected error

Suggest an edit to this page