ESTAGE Support
IdeasMy tickets

Update a program

Permission affiliates:writeRate limit writesIdempotent with Idempotency-Key

The program is sent whole: the same body and required fields as POST (name, is_active, access_by_tags, commissions). commissions replaces the program's list; optional fields left out keep their value. tags sent add every contact carrying them to the program; contacts already in it stay.

PATCHhttps://api.estage.com/v1/affiliate-programs/{id}

Authorization

ESTAGE-API-Keystringheaderrequired

A project key, est_live_…, from Settings → API keys. Call from server code only.

Path parameters

idintegerrequired

Body

application/json
namestringrequired≤ 255 chars
is_activebooleanrequired
access_by_tagsbooleanrequired
tagsarray of integernullable
commissionsarray of objectrequired
Show 4 fields
sectionstringrequired

One of products, subscription, templates, package_fp, package_sp

commissionintegerrequired≥ 0≤ 100
commission_textstringnullable≤ 255 chars
product_idsarray of integernullable
descriptionstringnullable
coverstringnullable
redirectstringnullable
priorityintegernullable
exclude_productsarray of integernullable
private_grouparray of anynullable
featuresarray of anynullable
ecosystembooleannullable

Headers

Idempotency-Keystring≤ 255 chars

Any unique string per attempt. A retry with the same key gets the first answer back instead of doing the work twice.

RequestcURL
curl --request PATCH \
  --url 'https://api.estage.com/v1/affiliate-programs/affiliate-program-id' \
  --header 'ESTAGE-API-Key: est_live_your-api-key' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: your-unique-key' \
  --data '{
    "name": "Partners Plus",
    "is_active": true,
    "access_by_tags": false,
    "commissions": [
      {
        "section": "products",
        "commission": 35,
        "commission_text": "35% on every sale",
        "product_ids": [
          77
        ]
      }
    ]
  }'
OK
{
  "data": {
    "id": 12,
    "name": "Partners Plus",
    "description": null,
    "cover": null,
    "is_active": true,
    "priority": 0,
    "redirect": null,
    "access_by_tags": false,
    "tags": [
      31
    ],
    "exclude_products": [],
    "private_group": null,
    "features": null,
    "ecosystem": false,
    "commissions": [
      {
        "section": "products",
        "commission": 35,
        "commission_text": "35% on every sale",
        "product_ids": [
          77
        ]
      }
    ],
    "created_at": "2026-09-01T08:00:00Z",
    "updated_at": "2026-11-13T11:20:00Z"
  }
}
Example. Errors are { error: { code, message, details } }.