---
title: "Add a new pet to the store"
method: POST
path: "/pet"
tags: ["pet"]
---

# Add a new pet to the store

`POST /pet`

Add a new pet to the store

## Request body

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

## Response `200`

Successful operation

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

## Other responses

- `400` — Invalid input
- `422` — Validation exception

## Changes

- **2024-11-20** `850aef3ee4df` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/drpcorg/apis/swagger-chotki-openapi-3-0/changes/pet/post.md)

---

[API](https://skmtc.dev/drpcorg/apis/swagger-chotki-openapi-3-0.md) · [All operations](https://skmtc.dev/drpcorg/apis/swagger-chotki-openapi-3-0/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/drpcorg/swagger-chotki-openapi-3-0/revisions/850aef3ee4df/schema)
