Cancel campaign
Overview
Cancel a campaign owned by the caller's company by setting its status to cancelled.
Prerequisites
- A bearer token. Callable with Account tokens.
- The
campaignIdof the record you are targeting.
Base URL
| Environment | URL |
|---|---|
| Production | https://production-api.shoutaboutus.com |
| Development | https://development-api.shoutaboutus.com |
Endpoint
POST /api/v1/campaign/{campaignId}/cancel
Authentication
-
Requires a bearer token in the
Authorization: Bearer <bearer-token>header. -
Who can call it: Account tokens.
-
Authentication, ACCOUNT-scope group.
-
If the id does not belong to your account it returns 400 ("You are not authorized to cancel this campaign").
-
Campaigns of
type == 'default'cannot be cancelled.
Rate limit
- No rate limit.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
campaignId | integer | Required | Digits only. |
Response
data.status(string) —"success".data.message(string) — confirmation text.- 400 if not owned by the caller, or if the campaign is the default campaign.
200 OK · 200
200{
"data": {
"status": "success",
"message": "Campaign cancelled successfully"
}
}Errors
| Status | Meaning |
|---|---|
400 | The request was rejected — the response explains why |
401 | The bearer token is missing, expired or invalid |
422 | The request failed validation — the response names the fields |
500 | Unexpected server error |
Example request
curl --request POST \
--url "https://production-api.shoutaboutus.com/api/v1/campaign/123/cancel" \
--header 'Authorization: Bearer <bearer-token>' \
--header 'Accept: application/json'Updated 11 days ago
Did this page help you?
