Update an existing pet
client.pets.update(PetUpdateParams { name, photoUrls, id, 3 more } body, RequestOptionsoptions?): Pet { name, photoUrls, id, 3 more }
/pet
Update an existing pet by Id
Parameters
Returns
Update an existing pet
import ArenaDemoDayDemoDocsDemoSite from 'arena-demo-day-demo-docs-demo-site-and-typescript-library';
const client = new ArenaDemoDayDemoDocsDemoSite({
apiKey: 'My API Key',
});
const pet = await client.pets.update({ name: 'doggie', photoUrls: ['string'] });
console.log(pet.id);
{
"name": "doggie",
"photoUrls": [
"string"
],
"id": 10,
"category": {
"id": 1,
"name": "Dogs"
},
"status": "available",
"tags": [
{
"id": 0,
"name": "name"
}
]
}Returns Examples
{
"name": "doggie",
"photoUrls": [
"string"
],
"id": 10,
"category": {
"id": 1,
"name": "Dogs"
},
"status": "available",
"tags": [
{
"id": 0,
"name": "name"
}
]
}