---
title: "Affiliate Bulk Edit Preview"
method: POST
path: "/networks/patch/affiliates/submit"
tags: ["Affiliates"]
---

# Affiliate Bulk Edit Preview

`POST /networks/patch/affiliates/submit`

## Request body

- AffiliatePatchInput — Input for bulk editing affiliates.
  - `network_affiliate_ids` integer[], required — IDs of the affiliates to be patched.
  - `fields` object[], required — List of fields to patch.
    - `field_type` 'network_employee_id' | 'account_executive_id' | 'referrer_id' | 'labels' | 'affiliate_name' | 'account_status' | 'default_currency_id' | 'has_notifications' | 'enable_media_cost_tracking_links' | 'network_traffic_source_id' | 'internal_notes' | 'billing_payment_method' | 'billing_billing_frequency' | 'billing_weekly' | 'billing_bimonthly' | 'billing_monthly' | 'billing_two_months' | 'billing_quarterly' | 'billing_is_invoice_creation_auto' | 'billing_invoice_amount_threshold' | 'billing_auto_invoice_start_date' | 'billing_invoice_generation_days_delay' | 'billing_default_payment_terms' | 'billing_default_invoice_is_hidden' | 'referral_is_enabled' | 'referral_method' | 'referral_value' | 'referral_commission_basis' | 'referral_minimum_threshold' | 'referral_duration', required — Type of the field to patch. See Patchable Fields below for the full list of supported field types.
    - `field_value` unknown, required
    - `operator` 'overwrite' | 'append' | 'delete' | 'clear', required — Operator determining how the field will be used to modify the affiliates.

## Response `200`

- AffiliatePatchResponse — Response from bulk edit preview or apply.
  - `changes` object[] — Proposed changes for each affiliate.
    - `network_affiliate` object — The affiliate being changed.
      - `network_affiliate_id` integer — Unique affiliate ID.
      - `network_id` integer — Network ID.
      - `name` string — Affiliate name.
      - `account_status` string — Current account status.
    - `change_status` string — Status of the change (e.g. "ok", "error").
    - `current_field` object — Current value of the field.
      - `field_type` string — The field type being changed.
      - `field_value` unknown
      - `operator` string — The operator used.
    - `changed_field` object — Proposed new value.
      - `field_type` string — The field type being changed.
      - `field_value` unknown
      - `operator` string — The operator used.
    - `error_message` string — Error message if the change would fail.
    - `related_changes` string — Description of any side-effect changes.
  - `resource_errors` object[] — Errors for affiliates that could not be processed.
    - `id` integer — Affiliate ID that errored.
    - `label` string — Affiliate name.
    - `message` string — Error description.

---

[API](https://skmtc.net/everflow/apis/everflow-network-api-tracking-domains.md) · [All operations](https://skmtc.net/everflow/apis/everflow-network-api-tracking-domains/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/everflow/everflow-network-api-tracking-domains/revisions/39242cee0e32/schema)
