Skip to content

Add a network on a published network template's version; the edge makes its postback credential

POST
/v1/buyer/networks
curl --request POST \
--url https://example.com/v1/buyer/networks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "currency": "example", "name": "example", "pixel_enabled": true, "status": "active", "template_id": "example", "template_version": 1 }'

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

Idempotency-Key
string
<= 64 characters

Made once per action and sent again on every retry of it, so the service acts once: the request_id of the create or money-moving call; a new one when left out

Media typeapplication/json
object
currency
string | null
name
string | null
pixel_enabled
boolean | null
status
string | null
Allowed values: active archived
template_id
string
template_version
integer | null format: int32

Created

Media typeapplication/json
object
created_at
required
string format: date-time
currency
required
string
id
required
integer format: int64
import_key
required
string
name
required
string
pixel_enabled
required
boolean
sequence
required
integer format: int64
status
required
string | null
Allowed values: active archived
template_id
required
string
template_version
required
integer format: int32
updated_at
required
string format: date-time
workspace_id
required
integer format: int64

Example

{
"status": "active"
}

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