Add a network on a published network template's version; the edge makes its postback credential
POST
/v1/buyer/networks
const url = 'https://example.com/v1/buyer/networks';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"currency":"example","name":"example","pixel_enabled":true,"status":"active","template_id":"example","template_version":1}'};
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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Idempotency-Key
string
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
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
currency
string | null
name
string | null
pixel_enabled
boolean | null
status
string | null
template_id
string
template_version
integer | null format: int32
Responses
Section titled “Responses”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
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"}default
Section titled “default”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" }}