---
title: "Updates a pet in the store with form data"
method: POST
path: "/pet/{petId}"
tags: ["pet"]
---

# Updates a pet in the store with form data

`POST /pet/{petId}`

## Request

- Base URL: `/v3` (relative, and the document’s source URL is not known)
- URL: `/v3/pet/{petId}`
- Auth: OAuth 2
  - Implicit: `https://petstore.swagger.io/oauth/authorize`
  - Scopes: `write:pets`, `read:pets`

## Path parameters

- `petId` integer, required

## Query parameters

- `name` string
- `status` string

## Other responses

- `405`: Invalid input

---

[API](https://skmtc.dev/lightcast/apis/swagger-petstore-openapi-3-0.md) - [All operations](https://skmtc.dev/lightcast/apis/swagger-petstore-openapi-3-0/llms.txt) - [OpenAPI document](https://skmtc.dev/lightcast/apis/swagger-petstore-openapi-3-0/revisions/4f1f6cb5a0cb?raw)
