Skip to main content
PATCH
/
v5
/
campaigns
/
{campaign_id}
curl --request PATCH \
  --url https://api-{dc}.moengage.com/v5/campaigns/{campaign_id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: <idempotency-key>' \
  --header 'X-MOE-Request-Id: <x-moe-request-id>' \
  --data '
{
  "request_id": "{{request_id}}",
  "channel": "PUSH",
  "campaign_delivery_type": "{{campaign_delivery_type}}",
  "updated_by": "{{user_email}}",
  "campaign_content": {
    "content": {
      "push": {
        "android": {
          "template_type": "BASIC",
          "basic_details": {
            "title": "{{notification_title}}",
            "message": "{{notification_message}}"
          }
        }
      }
    }
  }
}
'
{
  "response_id": "abc-301",
  "type": "campaign",
  "data": {
    "id": "64a1b2c3d4e5f6a7b8c9d0e1"
  }
}
The request body determines which flow runs.
Send a PATCH request without a status key in the body.The API merges each submitted component into the existing draft, then validates the full merged state (DRAFT_PATCH). After all individual components pass validation, cross-component checks run on the combined result.Only the fields you include in the request body are updated. Fields you omit retain their current values. For the full field reference per delivery type, see the Create Campaign API.
{
  "request_id": "{{request_id}}",
  "campaign_content": { }
}
Status and component fields are mutually exclusive: You cannot combine status: PUBLISH with any other component fields in the same request body, as doing so returns 400 Bad Request. Send either a component update or a publish action, never both in a single request.

Update restrictions by campaign state

Campaign stateEditable fieldsNon-editable fields
DRAFTAll fields
SCHEDULED: One-time (no instance sent)All fieldsscheduling_type
SCHEDULED: Periodic or Event-triggered (no instance sent)All fieldsscheduling_type
ACTIVEAll fields except those listed as non-editabletrigger_condition, segmentation_details, conversion_goal_details, scheduling_type, scheduling_start_date
STOPPED or ARCHIVEDAll fields (no updates allowed)
For Event-triggered campaigns, updated content is cached and takes up to 30 minutes to take effect.

Rate Limits

Rate Limit NameRate Limit
Update campaign per secondThe total number of update campaign requests per second per client allowed is 10.
Update campaign per minuteThe total number of update campaign requests per minute per client allowed is 100.
Update campaign per hourThe total number of update campaign requests per hour per client allowed is 6000.
Notes
  • Breaching the limits will reject the request.
  • Per-hour and per-day limits use a rolling window of the last 1 hour and last 24 hours respectively.

Authorizations

Authorization
string
header
required

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: On your MoEngage workspace, navigate to SettingsAccountAPI keys and click Create new key. The tab lists every API surface (Data, Segmentation, Push, Email, Campaigns, Templates, and more) and exposes per-resource actions. For Campaigns, ensure the View, Create & Manage, and Create, Manage & Publish checkboxes are selected.

For more information on authentication and getting your credentials, refer to Getting your credentials.

Send the value in the Authorization header as Basic followed by Base64-encoding of appkey:apisecret (workspace ID and API key).

Headers

X-MOE-Tenant-ID
string

Workspace tenant ID. Set this to the workspace (App) ID from Settings > Account > APIs > Workspace ID.

This header is optional. When omitted, the API resolves the workspace from the Basic Auth credentials in the Authorization header.

In the V1 Campaigns API, the workspace ID was passed via the MOE-APPKEY request header. In V5, this header is renamed to X-MOE-Tenant-ID.

X-MOE-Request-Id
string
required

Correlates with response_id. Supply this header or request_id in the body; if both are set, they must match.

Idempotency-Key
string<uuid>
required

UUID v4. Required on all POST and PATCH requests except POST /v5/campaigns/{campaign_id}/validate. Repeating the same key returns the same response body.

Path Parameters

campaign_id
string
required

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

application/json

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.

Used for component-level edits OR to publish a campaign. You cannot pass component fields and { "status": "PUBLISH" } in the same body.

request_id
string

A unique identifier for this update request.

Example:

"{{request_id}}"

channel
enum<string>

Must be PUSH for a Push update.

Available options:
PUSH
campaign_delivery_type
enum<string>

The delivery type of the campaign being updated.

Note: BROADCAST_LIVE_ACTIVITY is included in this enum for campaigns created via the V1 API or legacy paths. Draft creation via POST /v5/campaigns does not support BROADCAST_LIVE_ACTIVITY. A draft cannot be transitioned to a Live Activity campaign through V5.

Available options:
ONE_TIME,
PERIODIC,
EVENT_TRIGGERED,
BUSINESS_EVENT_TRIGGERED,
DEVICE_TRIGGERED,
LOCATION_TRIGGERED,
BROADCAST_LIVE_ACTIVITY
updated_by
string<email>

The email address of the user making this update, used for audit trail purposes. If omitted, the update is attributed to the authenticated API credential.

version_note
string

Optional free-text note saved on the new campaign version. Applies only when the update creates a new version (campaign versioning must be enabled for the workspace). Stored as the version's edit note.

Example:

"Updated subject line for the summer sale"

basic_details
object

Identifying metadata for the Push campaign, including name, team, tags, and platform targeting.

For field-by-field rules, conditional requirements, and platform-specific delivery flags (Android push_amp_plus_enabled, iOS provisional-push audience flags), refer to Push campaign metadata.

trigger_condition
object

Trigger condition details for Push event-triggered, device-triggered, and related campaigns.

Required for EVENT_TRIGGERED, DEVICE_TRIGGERED, and LOCATION_TRIGGERED Push campaigns.

For per-delay-type runnable payloads (ASAP, DELAY with AFTER/BEFORE, INTELLIGENT_DELAY), filter primitives, and primary/secondary filter combinations, refer to Trigger conditions.

campaign_content
object

Push message content, locales, and A/B variations.

For full POST /v5/campaigns request examples that include campaign_content, refer to campaign_delivery_type on PushCampaignCreateV5Request, VariationDetails, and the Create Campaign Draft code samples.

For per-template-type runnable payloads, refer to Android push content, iOS push content, or Web push content.

segmentation_details
object

Defines the target audience for the campaign.

For included/excluded filter combinations, filter primitives (user_attributes, actions, custom_segments), and opt-out targeting, refer to Campaign audience.

scheduling_details
object

Defines when the campaign should be sent.

For per-delivery-type runnable payloads (ASAP, AT_FIXED_TIME, SEND_IN_BTS, SEND_IN_USER_TIMEZONE, and PERIODIC with periodic_details), refer to Campaign delivery schedule.

delivery_controls
object

Controls for Push campaign delivery behavior.

For per-delivery-type runnable examples (throttle, event-triggered, device-triggered, location-triggered, queuing), refer to Push delivery controls.

advanced
object

Advanced Push delivery settings, including notification expiration and per-platform priority.

For runnable iOS APNS priority and Android priority examples, refer to Advanced Push settings.

conversion_goal_details
object

Configuration for tracking campaign conversion goals.

For runnable single-goal and multi-goal examples, refer to Conversion goal tracking.

control_group_details
object

Configuration for control groups.

For runnable campaign-control-group and global-control-group examples, refer to Control groups.

utm_params
object

UTM parameters for tracking campaign performance. The five standard keys (utm_source, utm_medium, utm_campaign, utm_term, utm_content) are explicitly defined.

Custom UTM parameters: Up to 5 additional custom parameters can be passed as separate keys directly inside the utm_params object. Custom keys accept arbitrary names — the utm_ prefix is a convention, not a requirement (for example, utm_cust or campaign_source are both accepted).

For runnable examples, refer to UTM parameters.

campaign_audience_limit
object

Configuration for capping the number of users a campaign can reach (max-send).

For runnable TOTAL (lifetime cap), INSTANCE (per-send cap, Periodic Push only), and disabled-cap examples, refer to Campaign audience cap.

Supported channels: Email, Push.

Supported delivery types:

  • All delivery types support frequency: TOTAL (lifetime cap).
  • frequency: INSTANCE (per-send cap) is supported only for Periodic Push campaigns.
  • campaign_audience_limit is not supported for BROADCAST_LIVE_ACTIVITY.

Flag-gated feature: This feature is not enabled by default for any workspace and requires explicit activation by your MoEngage account team. If you include campaign_audience_limit in a request on a workspace where the flag has not been enabled, the API returns a 400 with the following error body:

{
"error": {
"code": "VALIDATION_FAILED",
"message": "Campaign Audience Limit feature is not enabled for this db",
"target": "campaign_audience_limit",
"details": [
{
"target": "campaign_audience_limit",
"message": "Campaign Audience Limit feature is not enabled for this db"
}
]
},
"response_id": "{{response_id}}"
}

When is_campaign_audience_limit_enabled is true, the fields metric, frequency, and limit are all required. When set to false, those three fields must not be provided.

For ONE_TIME campaigns, only limit and is_campaign_audience_limit_enabled are supported. Do not pass metric or frequency, they are only valid for PERIODIC and EVENT_TRIGGERED campaigns. Passing them for a ONE_TIME campaign causes the validate API to fail.

Response

Draft updated successfully, or campaign published.

Note: V1 returned 204 No Content for successful updates. V5 returns 200 OK with a response body. Update any integration that checks for 204 to expect 200 instead.

response_id
string
type
string
Example:

"campaign"

data
object

Returned after a successful component PATCH or after publish with body field status set to PUBLISH.