Add a new pet to the store
POST/pet
Add a new pet to the store
Request
- application/json
- application/xml
- application/x-www-form-urlencoded
Body
required
Create a new pet in the store
- Array [
- ]
id int64
name stringrequired
category category
id int64
name string
photoUrls string[]required
tags tag[]
id int64
name string
status string
Possible values: [available
, pending
, sold
]
pet status in the store
Body
required
Create a new pet in the store
- Array [
- ]
id int64
name stringrequired
category category
id int64
name string
photoUrls string[]required
tags tag[]
id int64
name string
status string
Possible values: [available
, pending
, sold
]
pet status in the store
Body
required
Create a new pet in the store
- Array [
- ]
id int64
name stringrequired
category category
id int64
name string
photoUrls string[]required
tags tag[]
id int64
name string
status string
Possible values: [available
, pending
, sold
]
pet status in the store
Responses
- 200
- 405
Successful operation
- application/xml
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
id int64
name stringrequired
category category
id int64
name string
photoUrls string[]required
tags tag[]
id int64
name string
status string
Possible values: [available
, pending
, sold
]
pet status in the store
<root>
<id>10</id>
<name>doggie</name>
<category>
<id>1</id>
<name>Dogs</name>
</category>
<photoUrls>string</photoUrls>
<tags>
<id>0</id>
<name>string</name>
</tags>
<status>available</status>
</root>
- Schema
- Example (from schema)
Schema
- Array [
- ]
id int64
name stringrequired
category category
id int64
name string
photoUrls string[]required
tags tag[]
id int64
name string
status string
Possible values: [available
, pending
, sold
]
pet status in the store
{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
}
Invalid input
Loading...