Skip to main content
POST
/
networks
/
patch
/
advertiser
/
submit
Advertiser Patch Preview
curl --request POST \
  --url https://api.eflow.team/v1/networks/patch/advertiser/submit \
  --header 'Content-Type: application/json' \
  --header 'X-Eflow-Api-Key: <api-key>' \
  --data '
{
  "network_advertiser_ids": [
    100,
    101,
    102
  ],
  "fields": [
    {
      "field_type": "advertiser_status",
      "field_value": "active",
      "operator": "overwrite"
    },
    {
      "field_type": "labels",
      "field_value": [
        {
          "label_id": 5
        }
      ],
      "operator": "append"
    }
  ]
}
'
{
  "changes": [
    {
      "network_advertiser": {
        "network_advertiser_id": 123,
        "network_id": 123,
        "name": "<string>",
        "account_status": "active"
      },
      "change_status": "ok",
      "current_field": {
        "field_type": "<string>",
        "field_value": "<unknown>",
        "operator": "<string>"
      },
      "changed_field": {
        "field_type": "<string>",
        "field_value": "<unknown>",
        "operator": "<string>"
      },
      "error_message": "<string>",
      "related_changes": "<string>"
    }
  ],
  "resource_errors": [
    {
      "resource_id": 123,
      "error_message": "<string>"
    }
  ]
}

Authorizations

X-Eflow-Api-Key
string
header
required

The Everflow API key generated from the Control Center > Security.

Body

application/json
network_advertiser_ids
integer[]
required

Array of advertiser IDs to preview changes for.

fields
object[]
required

Array of field changes to preview. Each item specifies a field type, the new value, and how to apply it.

Response

200 - application/json

OK

changes
object[]

Array of change previews, one per advertiser. Shows what would change if the patch were applied.

resource_errors
object[]

Errors for advertiser IDs that could not be processed (e.g., invalid ID, insufficient permissions).