API documentation DELETE /offers/{id}
Delete an existing offer. The offer is soft-deleted, exactly like the delete action of the offers list: it disappears from the platform and stops receiving traffic, but its statistics are kept.
DELETE https://demo.trafficmanager.com/api/v1/offers/{id}
Authentication:
The request must be authenticated with the following HTTP headers:x-api-key: Your API key, found on the Security pagex-user-id: Your User ID, found on the Security page
If the HTTP headers are not passed, but you are logged in to the TrafficManager panel, the current user is used instead (so you can easily preview or download the data using your browser)
Permissions:
- The authenticated user must be an admin or advertiser.
- The authenticated user must be allowed to delete the requested offer (the same permission used by the offers list delete button).
Path Parameters:
id: offer ID
Example:
curl --location --request DELETE 'https://demo.trafficmanager.com/api/v1/offers/100' \
--header 'X-User-ID: __USER_UUID__' \
--header 'X-Api-Key: __API_KEY__'
Success Response:
{
"status": 200,
"message": "Operation successful"
}
Error Response:
{
"status": [error code],
"message": [error message]
}
English
العربية
Dansk
Deutsch
Suomi
Italiano
한국어
Português
Română
Українська
Русский
Svenska
中文