Skip to content

Add up to 500 entries to your bot list; one it holds already stays as it is

POST
/v1/buyer/bot-list/entries
curl --request POST \
--url https://example.com/v1/buyer/bot-list/entries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "entries": [ { "connection_id": 1, "kind": "ip", "note": "example", "value": "example" } ] }'

Who: a workspace’s buyer, or its key. API keys with the buyer:write scope.

Media typeapplication/json
object
entries
required
Array<object>
object
connection_id
integer format: int64
kind
required
string
Allowed values: ip network asn user_agent placement
note
string
value
required
string

OK

Media typeapplication/json
object
entries
required
Array<object>
object
added_by
required
Any of:
object
account
string
id
string
kind
required
string | null
Allowed values: user api_key service system postback rule tuner schedule
name
string
connection
required
Any of:
object
id
required
integer format: int64
name
string
created_at
required
string format: date-time
id
required
integer format: int64
kind
required
string | null
Allowed values: ip network asn user_agent placement
note
required
string
value
required
string
sequence
required
integer format: int64
updated_at
required
string | null format: date-time
workspace_id
required
integer format: int64

Example

{
"entries": [
{
"added_by": {
"kind": "user"
},
"kind": "ip"
}
]
}

An error, as go-commons apperr maps it

Media typeapplication/json
object
error
required
object
code
required
string
fields
object
key
additional properties
string
message
required
string

Example generated

{
"error": {
"code": "example",
"fields": {
"additionalProperty": "example"
},
"message": "example"
}
}