pet

Add a new pet to the store.

Changed on

Add a new pet to the store.

post/pet

Request

  • Base URL: https://petstore3.swagger.io/api/v3
  • URL: https://petstore3.swagger.io/api/v3/pet
  • Auth: OAuth 2 (implicit, authorization URL https://petstore3.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

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      added the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status