Update Campaign
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.
- 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.
- Campaigns cannot be updated when in Stopped or Archived state.
Authorizations
Authentication is done via Basic Auth. The username is your Workspace ID (earlier APP ID) and the password is your API Key. The value is a base64 encoding of 'username:password'.
How to obtain credentials:
- Navigate to Settings → Account → APIs in the MoEngage Dashboard
- Username: Copy the Workspace ID (earlier app id)
- Password: Copy the API key from the Campaign report/Business events/Custom templates tile
Headers
This is the workspace ID (earlier APP ID) of your MoEngage workspace.
You can find your MoEngage Workspace ID in the MoEngage Dashboard: 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
Campaign update payload. Only include the fields you want to update.
Note: 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.
- Push Campaign
- Email Campaign
A unique identifier for this campaign update request.
"push_update_12345"
The email ID of the user updating this campaign.
"john.doe@example.com"
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.