# Updates a pet in the store with form data

`POST /pet/{petId}`

Operation ID: `updatePetWithForm`

Tags: `pet`

OpenAPI specification: https://redocly.com/_spec/docs/openapi/petstore.json

## Servers

- `https://petstore.swagger.io/v2`: Default server
- `https://petstore.swagger.io/sandbox`: Sandbox server

## Authentication

This operation requires:

- `petstore_auth` (OAuth 2.0: implicit (authorization URL http://petstore.swagger.io/api/oauth/dialog), scopes: `write:pets`, `read:pets`)

## Parameters

### Path parameters

- `petId` (integer<int64>, required)
  ID of pet that needs to be updated

## Request body

### Content type: `application/x-www-form-urlencoded`

Schema: `object`

- `name` (string | null, nullable)
  Updated name of the pet
- `status` (string | null, nullable)
  Updated status of the pet

## Responses

### 405

Invalid input
