Update an offer
Permission
affiliates:writeRate limit writesIdempotent with Idempotency-KeyThe offer is sent whole: the same body and required fields as POST (name, is_active, type, program_id, programs, links). programs replaces the offer's program list; optional fields left out keep their value.
Authorization
ESTAGE-API-KeystringheaderrequiredA project key, est_live_…, from Settings → API keys. Call from server code only.
Path parameters
idintegerrequiredBody
application/jsonnamestringrequired≤ 255 charsis_activebooleanrequiredtypestringrequiredOne of subscription, products, templates, no_commission, packages
program_idintegerrequiredprogramsarray of integerrequiredlinksarray of objectrequiredShow 3 fields
urlstringtitlestringtypestringdescriptionstringnullablecoverstringnullabletitlestringnullable≤ 255 charssubtitlestringnullable≤ 255 charscontentstringnullablevideostringnullablecreative_bannersarray of anynullablecreative_videosarray of anynullablecreative_emailsarray of anynullablecreative_socialarray of anynullableHeaders
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-offers/affiliate-offer-id' \ --header 'ESTAGE-API-Key: est_live_your-api-key' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: your-unique-key' \ --data '{ "name": "Summer sale", "is_active": false, "type": "products", "program_id": 12, "programs": [ 12 ], "links": [ { "title": "Landing", "url": "https://shop.example.com/summer", "type": "page" } ] }'
OK
{
"data": {
"id": 58,
"name": "Summer sale",
"description": null,
"cover": null,
"is_active": false,
"type": "products",
"created_at": "2026-11-13T10:00:00Z",
"title": "Promote our spring sale",
"subtitle": null,
"content": null,
"video": null,
"links": [
{
"title": "Landing",
"url": "https://shop.example.com/summer",
"type": "page"
}
],
"creatives": {
"banners": null,
"videos": null,
"emails": null,
"social": null
},
"program_id": 12,
"program_ids": [
12
],
"updated_at": "2026-11-13T11:20:00Z"
}
}Example. Errors are
{ error: { code, message, details } }.