Pets
Creating a new pet
Create pet.
POST https://api.myapi.com/v1/pet
Creates a new pet.
Request Body
Name
Type
Description
name*
string
The name of the pet
owner_id
string
The id of the user who owns the pet
species
string
The species of the pet
breed
string
The breed of the pet
{
"name"="Wilson",
"owner": {
"id": "sha7891bikojbkreuy",
"name": "Samuel Passet",
"species": "Dog",}
"breed": "Golden Retriever",
}Updating a pet
Required scopes
This endpoint requires the following scopes:
- : read your pets
- : modify pets in your account
Authorizations
OAuth2implicitRequired
Authorization URL:
Body
idinteger · int64Optional
namestringRequiredExample:
doggiephotoUrlsstring[]Required
statusstring · enumOptionalPossible values:
pet status in the store
Responses
400
Invalid ID supplied
404
Pet not found
405
Validation exception
put
/petNo content
Last updated