dealmachine_mail_campaign_archive
Archives an ended campaign. End active, paused, ready or draft campaigns first; otherwise the API returns 409 CAMPAIGN_NOT_ENDED without changing the campaign. Cancels unsent mail, releases reservations, stops reminders and hides it from default lists. History stays under status=archived. Already submitted mail may still ship. Confirm with the user first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"campaign_id": "<campaign_id>",
"confirmed": "<confirmed>"
},
"name": "dealmachine_mail_campaign_archive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirmed | Yes | Set to true only after the user confirms archiving this campaign and cancelling its unsent mail | |
| campaign_id | Yes |