Skip to content

/turtles (POST)

POST
/turtles
curl --request POST \
--url https://example.com/api/turtles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form image=@file \
--form gallery=@front.png \
--form gallery=@back.png \
--form name=example

Creates a new turtle

Turtle to add

object
image
required
string format: binary
gallery
Array<string>
Example
[
"front.png",
"back.png"
]
name
string

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