Skip to content
Blume is now publicly available.
Blume
Esc
navigateopen⌘Jpreview

Add a new pet to the store.

POST/pet
Request body
requiredapplication/json
Create a new pet in the store
idinteger<int64>
namestringrequired
categoryCategory
Show properties
idinteger<int64>
namestring
photoUrlsstring[]required
tagsTag[]
Show properties
Array of Tag
idinteger<int64>
namestring
statusstring
pet status in the store
Allowed:availablependingsold
Responses
200Successful operation
idinteger<int64>
namestringrequired
categoryCategory
Show properties
idinteger<int64>
namestring
photoUrlsstring[]required
tagsTag[]
Show properties
Array of Tag
idinteger<int64>
namestring
statusstring
pet status in the store
Allowed:availablependingsold
400Invalid input
422Validation exception
defaultUnexpected error
Request
curl -X POST "/api/v3/pet" \
  -H "Content-Type: application/json" \
  -d '{
  "id": 10,
  "name": "doggie",
  "category": {
    "id": 1,
    "name": "Dogs"
  },
  "photoUrls": [
    "string"
  ],
  "tags": [
    {
      "id": 0,
      "name": "string"
    }
  ],
  "status": "available"
}'
Response
{
  "id": 10,
  "name": "doggie",
  "category": {
    "id": 1,
    "name": "Dogs"
  },
  "photoUrls": [
    "string"
  ],
  "tags": [
    {
      "id": 0,
      "name": "string"
    }
  ],
  "status": "available"
}