Skip to content

Creates a new otter

POST
/otters
curl --request POST \
--url https://example.com/api/otters \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "allOfCase": { "id": "example", "color": "example" }, "oneOfCase": { "id": "example", "river": "example" }, "anyOfCase": { "id": "example", "toy": "example" }, "notCase": { "id": "example" } }'

Otter to add

Media typeapplication/json
object
allOfCase
object
id
required
string
color
string
oneOfCase
One of:
river
object
id
required
string
river
string
anyOfCase
Any of:
playful
object
id
required
string
toy
string
notCase
object
id
required
string
not matching
archived
boolean
Examplegenerated
{
"allOfCase": {
"id": "example",
"color": "example"
},
"oneOfCase": {
"id": "example",
"river": "example"
},
"anyOfCase": {
"id": "example",
"toy": "example"
},
"notCase": {
"id": "example"
}
}

Animal response