Body Required

Pet object that needs to be added to the store

  • id integer(int64)
  • category object
    Hide category attributes Show category attributes object
    • id integer(int64)
    • name string
  • name string Required
  • photoUrls array[string] Required
  • tags array[object]
    Hide tags attributes Show tags attributes object
    • id integer(int64)
    • name string
  • status string

    pet status in the store

    Values are available, pending, or sold.

Body Required

Pet object that needs to be added to the store

  • id integer(int64)
  • category object
    Hide category attributes Show category attributes object
    • id integer(int64)
    • name string
  • name string Required
  • photoUrls array[string] Required
  • tags array[object]
    Hide tags attributes Show tags attributes object
    • id integer(int64)
    • name string
  • status string

    pet status in the store

    Values are available, pending, or sold.

Responses

  • 405

    Invalid input

POST /pet
curl \
 --request POST 'http://malicious-domain.tld/v2/pet' \
 --header "Content-Type: application/json" \
 --data '{"id":1,"name":"fluffy","tags":[{"id":1,"name":"cat"}],"status":"available","category":{"id":1,"name":"cat"},"photoUrls":["http://example.com/path/to/cat/1.jpg","http://example.com/path/to/cat/2.jpg"]}'
curl \
 --request POST 'http://malicious-domain.tld/v2/pet' \
 --header "Content-Type: application/xml"
Request examples
An example of cat, using `value` property
{
  "id": 1,
  "name": "fluffy",
  "tags": [
    {
      "id": 1,
      "name": "cat"
    }
  ],
  "status": "available",
  "category": {
    "id": 1,
    "name": "cat"
  },
  "photoUrls": [
    "http://example.com/path/to/cat/1.jpg",
    "http://example.com/path/to/cat/2.jpg"
  ]
}
An example of cat, using `value` property, which value is an array
[
  {
    "id": 1,
    "name": "fluffy",
    "tags": [
      {
        "id": 1,
        "name": "cat"
      }
    ],
    "status": "available",
    "category": {
      "id": 1,
      "name": "cat"
    },
    "photoUrls": [
      "http://example.com/path/to/cat/1.jpg",
      "http://example.com/path/to/cat/2.jpg"
    ]
  }
]
Request examples
An example of cat, using `value` property
<xml></xml>