Creates a new otter
POST
/otters
const url = 'https://example.com/api/otters';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"allOfCase":{"id":"example","color":"example"},"oneOfCase":{"id":"example","river":"example"},"anyOfCase":{"id":"example","toy":"example"},"notCase":{"id":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" } }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Otter to add
Media typeapplication/json
object
allOfCase
object
id
required
string
color
string
anyOfCase
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" }}Responses
Section titled “Responses”Animal response