View Categories

Add a new pet to the store.

< 1 min read

Request Body #

Content type: application/json — required

FieldTypeRequiredDescription
idinteger (int64)Optional
namestringRequired
categoryobjectOptional
category.idinteger (int64)Optional
category.namestringOptional
photoUrlsarray of stringRequired
tagsarray of objectOptional
statusstringOptionalpet status in the store Allowed: available, pending, sold
📋

Example request

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

Responses #

200 — Successful operation #

FieldTypeRequiredDescription
idinteger (int64)Optional
namestringRequired
categoryobjectOptional
category.idinteger (int64)Optional
category.namestringOptional
photoUrlsarray of stringRequired
tagsarray of objectOptional
statusstringOptionalpet status in the store Allowed: available, pending, sold
📋

Example 200 response

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

Powered by BetterDocs

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is registered on wpml.org as a development site. Switch to a production site key to remove this banner.