Update a program
Permission
affiliates:writeRate limit writesIdempotent with Idempotency-KeyThe 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.
Authorization
ESTAGE-API-KeystringheaderrequiredA project key, est_live_…, from Settings → API keys. Call from server code only.
Path parameters
idintegerrequiredBody
application/jsonnamestringrequired≤ 255 charsis_activebooleanrequiredaccess_by_tagsbooleanrequiredtagsarray of integernullablecommissionsarray of objectrequiredShow 4 fields
sectionstringrequiredOne of products, subscription, templates, package_fp, package_sp
commissionintegerrequired≥ 0≤ 100commission_textstringnullable≤ 255 charsproduct_idsarray of integernullabledescriptionstringnullablecoverstringnullableredirectstringnullablepriorityintegernullableexclude_productsarray of integernullableprivate_grouparray of anynullablefeaturesarray of anynullableecosystembooleannullableHeaders
Idempotency-Keystring≤ 255 charsAny 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 } }.