Skip to content
Get started

Updates a pet in the store with form data

post/pet/{petId}

Updates a pet in the store with form data

Path ParametersExpand Collapse
petId: number
Query ParametersExpand Collapse
name: optional string

Name of pet that needs to be updated

status: optional string

Status of pet that needs to be updated

Updates a pet in the store with form data
curl https://petstore3.swagger.io/api/v3/pet/$PET_ID \
    -X POST \
    -H "api_key: $PETSTORE_API_KEY"
Returns Examples