Skip to main content
POST
/
networks
/
patch
/
affiliates
/
submit
Affiliate Bulk Edit Preview
curl --request POST \
  --url https://api.eflow.team/v1/networks/patch/affiliates/submit \
  --header 'Content-Type: application/json' \
  --header 'X-Eflow-Api-Key: <api-key>' \
  --data '
{
  "network_affiliate_ids": [
    7
  ],
  "fields": [
    {
      "field_type": "account_status",
      "field_value": "inactive",
      "operator": "overwrite"
    }
  ]
}
'
{
  "changes": [
    {
      "network_affiliate": {
        "network_affiliate_id": 7,
        "network_id": 1,
        "name": "Frances Holder Inc.",
        "account_status": "active"
      },
      "change_status": "ok",
      "current_field": {
        "field_type": "account_status",
        "field_value": "active",
        "operator": "overwrite"
      },
      "changed_field": {
        "field_type": "account_status",
        "field_value": "inactive",
        "operator": "overwrite"
      },
      "error_message": "",
      "related_changes": ""
    }
  ],
  "resource_errors": []
}
Preview the result of a bulk edit before applying it. Returns the proposed changes for each affiliate, including current and new values, along with any validation errors. This endpoint works exactly the same way as the Bulk Edit endpoint, with the important difference that it does not actually change anything.

Authorizations

X-Eflow-Api-Key
string
header
required

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

Body

application/json

Input for bulk editing affiliates.

network_affiliate_ids
integer[]
required

IDs of the affiliates to be patched.

An affiliate ID to patch.

fields
object[]
required

List of fields to patch.

Response

200 - application/json

Response from bulk edit preview or apply.

changes
object[]

Proposed changes for each affiliate.

resource_errors
object[]

Errors for affiliates that could not be processed.