Update Campaign
This API updates an existing Push or Email campaign in MoEngage. You can only update campaigns created via the API, not campaigns created through the MoEngage dashboard.
Rate Limits
| Rate Limit Name | Rate Limit |
|---|---|
| Update campaign per second | The total number of update campaign requests per second per client allowed is 10. |
| Update campaign per minute | The total number of update campaign requests per minute per client allowed is 100. |
| Update campaign per hour | The total number of update campaign 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).
Path Parameters
The unique ID of the campaign to update.
You can fetch the campaign ID using the Get Campaign Details API by filtering with campaign name, channel, or other criteria.
Body
In this payload, you can include the fields you want to update.
Notes:
- Pass only the fields you want to update. You don't need to send the complete payload.
- If updating a field within an object, you must pass the complete object.
- If updating a nested field, you must pass the complete parent object. For example, to update the title of a Push notification, pass the complete campaign_content object.
- Use the tabs below to select your campaign type. The schema will adapt based on the selected channel.
- Push Campaign
- Email Campaign
A unique identifier for this campaign update request.
"push_update_12345"
The email ID of the user updating this campaign.
The communication channel (automatically set to PUSH for this tab).
PUSH Contains the basic information about the Push campaign.
Trigger condition details for Push event-triggered campaigns.
Required for EVENT_TRIGGERED campaigns.
Contains the content and variations for the Push campaign.
Defines the target audience for the campaign.
Defines when the campaign should be sent.
Controls for Push campaign delivery behavior.
Advanced campaign settings.
Configuration for tracking campaign conversion goals.
Configuration for control groups.
UTM parameters for tracking campaign performance.
Response
Campaign updated successfully. The server successfully processed the request but is not returning any content.