Skip to content
  • Auto
  • Light
  • Dark
Get started

Update By ID

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 JustinDocsTest from 'justin-docs-test';

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

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