pet

Update an existing pet

Update an existing pet by Id

put/pet

Request

  • Base URL
    /v3 (relative, and the document’s source URL is not known)
  • URL
    /v3/pet
  • Auth
    OAuth 2
    Implicit: https://petstore.swagger.io/oauth/authorize
    Scopes: write:pets, read:pets

Request body

idinteger
namestring required
photoUrlsstring[] required
status'available' | 'pending' | 'sold'

pet status in the store

Example request

{
  "id": 10,
  "name": "doggie",
  "category": {
    "id": 1,
    "name": "Dogs"
  }
}

Response

Successful operation

idinteger
namestring required
photoUrlsstring[] required
status'available' | 'pending' | 'sold'

pet status in the store

Example response

{
  "id": 10,
  "name": "doggie",
  "category": {
    "id": 1,
    "name": "Dogs"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.