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
formatint64
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 RpTestDocs1 from 'rp-test-docs-1';

const client = new RpTestDocs1({
  apiKey: process.env['PETSTORE_API_KEY'], // This is the default and can be omitted
});

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