Axerity

Update a pet with form data

Updates a pet resource based on the form data.

POST https://petstore3.swagger.io/api/v3/pet/{petId}

Path parameters

petId integer required

The id of the pet that needs to be updated.

Query parameters

name string

The new name of the pet.

status string

The new status of the pet.

Returns

Returns the updated Pet.

id integer

Unique id for the pet.

Request
curl -X POST "https://petstore3.swagger.io/api/v3/pet/10?name=doggie&status=sold"
Response
{ "id": 10, "name": "doggie", "status": "sold" }