Rename a campaign
Access: an API key (or an org-wide key naming the workspace) with manage on campaigns.
Any status. The same name again writes nothing. A rename counts as a settings edit: an open wizard's next auto-save of the draft answers conflict and reloads.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
campaignId*string^[0-9a-f]{24}$application/json- body
name*string1 <= length <= 200Default Response
application/json- response
campaign*curl -X PATCH 'https://api.tryzen.co/v1/campaigns/string' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'{ "campaign": { "id": "string", "name": "string", "status": "draft", "revision": 0, "listId": "string", "excludeListId": "string", "exclusions": { "otherCampaigns": false, "otherSenderConversations": false, "sameSenderOtherCampaigns": false, "blacklistLeads": true, "blacklistCompanies": true }, "senderIds": [ "string" ], "schedule": { "tz": "string", "days": [ "mon" ], "from": "string", "to": "string", "startDate": "string", "endDate": "string" }, "sequence": { "rootId": "string", "nodes": { "property1": { "type": "if_connected", "config": {}, "delay": { "value": 0, "unit": "hours" }, "branches": { "yes": "string", "no": "string" } }, "property2": { "type": "if_connected", "config": {}, "delay": { "value": 0, "unit": "hours" }, "branches": { "yes": "string", "no": "string" } } } }, "sequenceVersion": 1, "launchedAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}One campaign: settings and its sequence (the draft, or the current version) GET
**Access:** an API key (or an org-wide key naming the workspace) with view on `campaigns`.
Delete a campaign DELETE
**Access:** an API key (or an org-wide key naming the workspace) with manage on `campaigns`. Drafts and finished, canceled or failed campaigns. A scheduled, starting, running or paused campaign is 409 `campaign_not_deletable`: cancel it first. Right after a cancel, while its leads are still being stopped, 409 `campaign_still_stopping`: try again in a minute. The campaign and its sequence versions are deleted; its leads' history (actions, stats, lead rows) stays, so exclusion rules still see who it reached and workspace totals stay true. Webhooks filtered on it lose it from their filter; one filtered on it alone is deactivated rather than widened to all campaigns (`webhooks` counts both).