Last updated 2 months ago
Good to know: These API methods were auto-generated from an example OpenAPI file. You'll see that it's not editable – that's because the contents are synced to a URL! Any time the linked file changes, the documentation will change too.
Add a new pet to the store.
10
doggie
pet status in the store
available
pending
sold
POST /api/v3/pet HTTP/1.1 Host: Content-Type: application/json Accept: */* Content-Length: 133 { "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "text" ], "tags": [ { "id": 1, "name": "text" } ], "status": "available" }
Successful operation
{ "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "text" ], "tags": [ { "id": 1, "name": "text" } ], "status": "available" }
Update an existing pet by Id.
PUT /api/v3/pet HTTP/1.1 Host: Content-Type: application/json Accept: */* Content-Length: 133 { "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "text" ], "tags": [ { "id": 1, "name": "text" } ], "status": "available" }