Skip to content
Get started

Updates a pet in the store with form data

client.pets.updateByID(numberpetID, PetUpdateByIDParams { name, status } params?, RequestOptionsoptions?): void
post/pet/{petId}

Updates a pet in the store with form data

ParametersExpand Collapse
petID: number
params: PetUpdateByIDParams { name, status }
name?: string

Name of pet that needs to be updated

status?: string

Status of pet that needs to be updated

Updates a pet in the store with form data
import ArenaDemoDayDemoDocsDemoSite from 'arena-demo-day-demo-docs-demo-site-and-typescript-library';

const client = new ArenaDemoDayDemoDocsDemoSite({
  apiKey: 'My API Key',
});

await client.pets.updateByID(0);
Returns Examples