AI Assistant

How can I help you today?

CategoriesCreate Categories
Categories

POST /categories

Create a new pet category

curl -X POST "https://api.petstore.example.com/v1/categories" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "name": "John Doe",
  "description": "example_string"
}'
{
  "id": 1,
  "name": "Dogs",
  "description": "All types of dogs"
}
POST
/categories
POST
Security Scheme
Bearer Tokenstring
Required

JWT token obtained from the login endpoint

JWT token obtained from the login endpoint
Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). JWT token obtained from the login endpoint

Responses