Update offer
Updates an existing offer. Only provided fields are updated. When a previously expired offer is reactivated (status set to active while expiration_date is in the past), the backend clears expiration by setting is_expires=0 and returning expiration_date as an empty string.
Authorizations
Preferred authentication method. Pass the API key in the X-API-Key HTTP request header. The user account must have api_status enabled.
Path Parameters
Offer ID.
Body
128Offer status to set: 1=active, 2=testing, 3=inactive, 6=draft. 5=deleted is additionally accepted on update, but it is not a status change: it performs the same write as DELETE /api/v2/network/offers/{id} and is one-way — the offer then returns 404 on GET, PUT and DELETE, and its urls, creatives and custom params become unreachable. Create Offer rejects 5 outright.
3Timezone identifier used to determine whether expiration_date is in the past.
0, 1 0, 1 Expiration date in Y-m-d format. When is_expires=1, must be today or a future date in the offer timezone.
0, 1 0, 1 0, 1 0, 1 0, 1