Change Campaign Status
This API updates the status of campaigns to stop, pause, or resume them. You can only change the status of campaigns created via the Create Campaign API (not dashboard-created campaigns).
- Stop a scheduled One-time campaign (Email and Push)
- Pause and resume a running Periodic or Event-triggered Email campaign.
- Pause and resume the following running Push campaigns:
- Periodic
- Event-triggered
- Device-triggered
- Location-triggered
Rate Limits
| Rate Limit Name | Rate Limit |
|---|---|
| change campaign status per second | The total number of change campaign status requests per second per client is 10. |
| change campaign status per minute | The total number of change campaign status requests per minute per client allowed is 100. |
| change campaign statusper hour | The total number of change campaign status requests per hour per client allowed is 6000. |
- Breaching the limits will reject the request.
- Per hour and per day limits will consider the calculation based on the last hour and last 24 hrs respectively.
Authorizations
Authentication is done via Basic Auth. This requires a base64-encoded string of your credentials in the format 'username:password'.
- Username: Use your MoEngage workspace ID (also known as the App ID). You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
- Password: Use your API Key, which you can find within the Campaign report/Business events/Custom templates/Catalog API/Inform Report tile.
For more information on authentication and getting your credentials, refer here.
Headers
This is the Workspace ID of your MoEngage account that must be passed with the request. You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
Body
Send campaign status change request with action and campaign IDs.
You can request to change the status of one or more campaigns.
A unique identifier for this status change request.
"status_change_12345"
The action to perform on the campaign(s).
- STOP: Stop a scheduled One-time campaign (cannot be used for Periodic campaigns). After a One-time campaign moves to Active state, it cannot be stopped.
- PAUSE: Pause a running Periodic or Event-triggered campaign.
- RESUME: Resume a paused Periodic or Event-triggered campaign.
STOP, PAUSE, RESUME Array of campaign IDs whose status you want to change.
Maximum: 10 campaign IDs per request
1 - 10 elements["camp_abc123", "camp_def456"]Response
Campaign status changed successfully. No content returned.
For a successful 200 response, the API does not return any content.