Add a new pet to the store
1 min
POST
https://petstore3.swagger.io/api/v3/pet
bodyobjectCreate a new pet in the store
idinteger<int64>
namestring
categoryobject
photoUrlsarray
tagsarray
statusstring<available | pending | sold>pet status in the store
200Successful operation
405Invalid input
curl --location 'https://petstore3.swagger.io/api/v3/pet' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"id": 0,
"name": "",
"category": {
"id": 0,
"name": ""
},
"photoUrls": [
""
],
"tags": [
{
"id": 0,
"name": ""
}
],
"status": ""
}'This is a very long sentence that spans several lines in the YAML but which will be rendered as a string with newlines preserved.
Hints
## 2asdasdas
asdas asd We would love you to contribute to `@octokit/rest`, pull requests are very welcome! Please see CONTRIBUTING.md for more information.Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.