Skip to content

Creates a new rabbit

POST
/rabbits
curl --request POST \
--url https://example.com/api/rabbits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'colors=brown,white' \
--data 'habitat=region,meadow,type,burrow'

Creates a new rabbit

Rabbit to add

Media typeapplication/x-www-form-urlencoded
object
colors
Array<string>
habitat
object
region
string
type
string
Example
colors=brown,white&habitat=region,meadow,type,burrow

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"
}