Swagger Petstore - OpenAPI 3.0· docs by DocoAPI
v1.0.27
POST/pet/{petId}
operationId: updatePetWithForm

Updates a pet in the store with form data.

Updates a pet resource based on the form data.

🔒petstore_auth

Parameters

Path Parameters
petIdinteger (int64)required

ID of pet that needs to be updated

Query Parameters
namestringoptional

Name of pet that needs to be updated

statusstringoptional

Status of pet that needs to be updated

Responses

▼200 OK — successful operation
▼400 Bad Request — Invalid input
▼default — Unexpected error

⚡ Try it out▼