Copy of Crear
Creating a new pet
// Some codeCreate 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
Updating a pet
Scopes requeridos
Este endpoint requiere los siguientes scopes:
- : read your pets
- : modify pets in your account
Autorizaciones
OAuth2implicitRequerido
Authorization URL:
Cuerpo
idinteger · int64Opcional
namestringRequeridoExample:
doggiephotoUrlsstring[]Requerido
statusstring · enumOpcionalValores posibles:
pet status in the store
Respuestas
400
Invalid ID supplied
404
Pet not found
405
Validation exception
put
/petSin contenido
Última actualización
¿Te fue útil?
