v5
latestOpenAPI 3.1.02026-07-31151195455.5 KBcampaigns
End campaign
Ends a stopped campaign, setting ended_at and ended_by_user_id, applying pending access changes, and queuing report generation. Returns 400 unless the campaign is started and stopped and not already ended.
post/campaigns/{campaign_id}/end
Path parameters
campaign_idstring uuid required
The ID of the campaign.
Response
The ended Campaign.
Example response
{
"campaign_id": "f454d283-ca87-4a8a-bdbb-df212eca5353",
"name": "Q3 Access Review",
"status": "DRAFT",
"is_template": false,
"created_at": "2026-07-01T00:00:00Z",
"updated_at": "2026-07-01T00:00:00Z",
"created_by_user_id": "32acc112-21ff-4669-91c2-21e27683eaa1",
"configuration": null,
"started_at": null,
"started_by_user_id": null,
"stopped_at": null,
"stopped_by_user_id": null,
"ended_at": null,
"ended_by_user_id": null
}