Skip to content

addCat

POST
/cats
curl --request POST \
--url https://example.com/api/cats \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "tag": "example", "age": 1 }'

Creates a new cat

Cat to add

Media typeapplication/json

More information

object
name
required
string
tag
string
age
required
integer format: int32
Examplegenerated
{
"name": "example",
"tag": "example",
"age": 1
}

Animal response

Media typeapplication/json
object
name
required
string
tag
string
id
required
integer format: int64
Examplegenerated
{
"name": "example",
"tag": "example",
"id": 1
}

Unexpected error

Media typeapplication/json
object
code
required
integer format: int32
message
required
string
Examplegenerated
{
"code": 1,
"message": "example"
}