Skip to navigation

Replace an unsent mass message

Replaces a mass message that has not started sending, that is a DRAFT or QUEUED campaign.

Request

This is a whole replacement, so send every settable field every time. An omitted price makes the campaign free, and an unknown field is refused with 400. The same body sent twice leaves the same campaign, so the call is idempotent by nature.

As on create, the body declares authorship; see message authorship. The call is not blocked by restrictions on the creator’s account.

Price

A price needs write:paid_messages in your application’s effective scopes, which include the agency’s grant. A DRAFT may be repriced, because it is counted against the agency’s limits only when it is queued. Sending back the stored price is allowed.

Queued campaigns

A QUEUED campaign keeps its audience, its schedule and its price. Its price was approved per recipient at that value.

Errors

  • 400 — the body has an unknown field.
  • 403 PRICE_NOT_PERMITTED — a price without write:paid_messages.
  • 409 — the campaign has already started sending.
  • 409 QUEUED_AUDIENCE_LOCKED — the audience of a queued campaign cannot change.
  • 409 QUEUED_SCHEDULE_LOCKED — the schedule of a queued campaign cannot change.
  • 409 QUEUED_PRICE_LOCKED — the price of a queued campaign cannot change.

Required scopes: write:mass_messages.

Authentication

AuthorizationBearer

OAuth 2.0 client credentials. Request an access token at POST /partner/v1/oauth/token (grant_type=client_credentials) with the application’s client secret or a private_key_jwt assertion, then send it as Authorization: Bearer evpa_live_… (or evpa_test_… for a sandbox application). Tokens are opaque and short lived (see expires_in); there is no refresh token. Each operation lists the scopes it requires.

Required scopes:write:mass_messages

Path parameters

creatorIdstringRequired>=1 character

The creator profile id — the ONLY source of the creator a request acts for.

midstringRequired>=1 character

Headers

X-Creator-IdstringOptional

Optional echo of the path creatorId; any other value is refused with 403 CREATOR_CONTEXT_MISMATCH.

Request

This endpoint expects an object.
bodystringRequired1-2000 characters
segmentCriteriaobject or string or nullOptional
attachmentslist of stringsOptional
mediaAssetIdslist of stringsOptional

Alias of attachments.

scheduledAtdatetime or nullOptional
unlockPriceobject or nullOptional

As on create; price is accepted as an alias.

priceobject or nullOptional

Alias of unlockPrice.

blurPreviewbooleanOptional
authorshipenumOptional

REQUIRED for an application: AI_AUTOMATED needs write:messages:automated; HUMAN_AUTHORED / AI_DRAFTED_HUMAN_SENT need write:messages:operator and operatorRef. Internal provenance only — the fan sees the creator’s broadcast.

Allowed values:
operatorRefstringOptional1-64 characters

The external CRM’s opaque operator id — required with HUMAN_AUTHORED / AI_DRAFTED_HUMAN_SENT, refused otherwise. Agency audit only.

Response

The rewritten campaign.
massMessageobject
The creator's own campaign DTO.
quoteobject or null

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error