Add a new pet to the store.
Add a new pet to the store.
POST
/api/v3/pet Authentication
Requires OAuth2 (scopes write:pets, read:pets).
Body parameters
Accepts application/json, application/xml, application/x-www-form-urlencoded.
id int64 (format int64)
name string required No description.
category Category No description.
photoUrls array of string required No description.
tags array of Tag No description.
status enum pet status in the store (one of available, pending, sold)
Response 200
Successful operation
id int64 (format int64)
name string required No description.
category Category No description.
photoUrls array of string required No description.
tags array of Tag No description.
status enum pet status in the store (one of available, pending, sold)
Response 400
Invalid input
Response 422
Validation exception
Response default
Unexpected 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"}