Skip to content

Change a network; a new template version reads its postbacks from then on

PATCH
/v1/buyer/networks/{id}
curl --request PATCH \
--url https://example.com/v1/buyer/networks/example \
--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.

id
required
string
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

OK

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