Pause an active campaign, or a ready campaign that accepts properties. Mail already submitted to the vendor will still be delivered. Properties added while the campaign is paused wait at step 1 and no mail goes out for them until you resume with POST /campaigns/{id}/resume.
An ended campaign cannot be paused and returns 409 campaign_ended.
path idstringrequired
Campaign ID (UUID)
Request example
12curl -X POST https://api.v2.dealmachine.com/v1/mail/campaigns/a1b2c3d4/pause \
-H "Authorization: Bearer dm_sk_live_xxx"
Response example
1234567{
"error": {
"code": "campaign_ended",
"message": "This campaign has ended and cannot be paused.",
"request_id": "req_abc123"
}
}