Skip to content

Creates a new okapi

POST
/okapi
curl --request POST \
--url https://example.com/api/okapi \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "id": 1, "name": "example", "country": "example", "coordinates": "example", "color": "example" }'

Okapi to add

Media typeapplication/json
object
id
integer format: int64
name
string
country
string
coordinates
string
Any of:
basic details
object
color
string
Examplegenerated
{
"id": 1,
"name": "example",
"country": "example",
"coordinates": "example",
"color": "example"
}

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