Skip to content

Creates a new elephant

POST
/elephant
curl --request POST \
--url https://example.com/api/elephant \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '"large"'

Elephant to add

Media typeapplication/json
One of:

Ear size

string
Allowed value: large

Animal response

Media typeapplication/json
object
id
required
integer format: int64
name
required
Name of the animal

A friendly name for the animal.

string
tag
string
Example
{
"id": 1,
"name": "dog",
"tag": "pet"
}

Unexpected error

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