Delete a promotion
Soft-deletes a promotion.
DELETE
/promotions/{id}Authorization
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idintegerrequiredID of the promotion to delete.
Responses
204Promotion deleted
Request
curl -X DELETE "https://api.onbolder.com/v2/promotions/20" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://api.onbolder.com/v2/promotions/20", {
method: "DELETE",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.delete(
"https://api.onbolder.com/v2/promotions/20",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)Response
Promotion deleted