Skip to content

addDog

POST
/dogs
curl --request POST \
--url https://example.com/api/dogs \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "tag": "example" }'

Creates a new dog

Dog to add

Media typeapplication/json
Any of:

A representation of an animal

object
>= 1 properties <= 4 properties
name
required
string
tag
string
key
additional properties
number
Examplegenerated
{
"name": "example",
"tag": "example"
}

Animal response

Media typeapplication/json
object
name
required
string
tag
string
id
required
integer format: int64
Examplegenerated
{
"name": "example",
"tag": "example",
"id": 1
}

Unexpected error

Media typeapplication/json
object
code
required
integer format: int32
message
required
string
Examplegenerated
{
"code": 1,
"message": "example"
}