---
title: "Update an existing pet"
method: PUT
path: "/pet"
tags: ["pet"]
---

# Update an existing pet

`PUT /pet`

## Request body

- Pet
  - `id` integer
  - `category` Category
    - `id` integer
    - `name` string
  - `name` string, required
  - `photoUrls` string[], required
  - `tags` Tag[]
    - `id` integer
    - `name` string
  - `status` 'available' | 'pending' | 'sold' — pet status in the store

## Other responses

- `400` — Invalid ID supplied
- `404` — Pet not found
- `405` — Validation exception

---

[API](https://skmtc.dev/swagger/apis/swagger-petstore.md) · [All operations](https://skmtc.dev/swagger/apis/swagger-petstore/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/swagger/swagger-petstore/revisions/bb116730d391/schema)
