Updates an existing Push or Email campaign in MoEngage.
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:
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)
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.
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.
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.
Campaign updated successfully. The server successfully processed the request but is not returning any content.