---
title: Add a new pet to the store.
description: "## Request Body Content type: `application/json` — **required** | Field | Type | Required | Description | | --- | --- | --- | --- | | `id` | integer (int64) | Optional | | | `name` | string | **Required** | |…"
url: "https://cbotai.shahrear.msf.bd/docs/add-a-new-pet-to-the-store-2/"
updated: "2026-09-01"
category: Configurations
---

# Add a new pet to the store.

## Request Body

Content type: `application/json` — **required**

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | integer (int64) | Optional |  |
| `name` | string | **Required** |  |
| `category` | object | Optional |  |
| `category.id` | integer (int64) | Optional |  |
| `category.name` | string | Optional |  |
| `photoUrls` | array of string | **Required** |  |
| `tags` | array of object | Optional |  |
| `status` | string | Optional | pet status in the store Allowed: available, pending, sold |

![📋](https://s.w.org/images/core/emoji/17.0.2/svg/1f4cb.svg)

Example request

```
{
    "id": 10,
    "name": "doggie",
    "category": {
        "id": 1,
        "name": "Dogs"
    },
    "photoUrls": [
        "string"
    ],
    "tags": [
        {
            "id": 1,
            "name": "string"
        }
    ],
    "status": "available"
}
```

## Responses

### 200 — Successful operation

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | integer (int64) | Optional |  |
| `name` | string | **Required** |  |
| `category` | object | Optional |  |
| `category.id` | integer (int64) | Optional |  |
| `category.name` | string | Optional |  |
| `photoUrls` | array of string | **Required** |  |
| `tags` | array of object | Optional |  |
| `status` | string | Optional | pet status in the store Allowed: available, pending, sold |

![📋](https://s.w.org/images/core/emoji/17.0.2/svg/1f4cb.svg)

Example 200 response

```
{
    "id": 10,
    "name": "doggie",
    "category": {
        "id": 1,
        "name": "Dogs"
    },
    "photoUrls": [
        "string"
    ],
    "tags": [
        {
            "id": 1,
            "name": "string"
        }
    ],
    "status": "available"
}
```
