Admin APIEmail
Update a campaign
Changes the fields sent while the campaign is a draft or scheduled.
Setting scheduled_at schedules it. The body is frozen once sending
starts.
Authorization
bearer_auth AuthorizationBearer <token>
Authorization: Bearer <token>. Either a session access token from POST /auth/login (refresh it with POST /auth/refresh) or a store API token (mobi_st_…). A store API token works only for the store it was issued in, and can do at most what its issuing user can there, narrowed to the scopes it was issued with.
In: header
Path Parameters
store_id*string
Store id
Format
uuidbroadcast_id*string
Campaign (broadcast) id
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/email/broadcasts/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{
"ab_decide_at": "2019-08-24T14:15:22Z",
"ab_test": {},
"ab_winner": "string",
"audience": {},
"bounced_count": 0,
"clicked_count": 0,
"complained_count": 0,
"created_at": "2019-08-24T14:15:22Z",
"created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",
"delivered_count": 0,
"design": {},
"failed_count": 0,
"finished_at": "2019-08-24T14:15:22Z",
"html": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"opened_count": 0,
"optimize_send_time": true,
"parent_broadcast_id": "68fbb8b5-e08f-4e23-91e3-27e73027465c",
"reply_to": "string",
"scheduled_at": "2019-08-24T14:15:22Z",
"sent_count": 0,
"started_at": "2019-08-24T14:15:22Z",
"status": "draft",
"store_id": "7fe87115-950c-4ae8-bd7e-970406bc9ac0",
"subject": "string",
"template_id": "c6d67e98-83ea-49f0-8812-e4abae2b68bc",
"text_body": "string",
"total_recipients": 0,
"unsubscribed_count": 0,
"updated_at": "2019-08-24T14:15:22Z"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}