Archive a campaign owned by the authenticated brand.
DELETE /brands/me/campaigns/{campaignId}
DELETE
/brands/me/campaigns/{campaignId}
Because Campaign has no archivedAt column in the current schema, this endpoint performs a hard cascade delete: removes the campaign row and all CampaignPolst joins. Vote events on the underlying polsts are preserved. Returns 204 on success.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” campaignId
required
string format: uuid
Campaign UUID.
Header Parameters
Section titled “Header Parameters ” X-Polst-Idempotency-Key
required
string
Idempotency key, 8–255 URL-safe chars.
Responses
Section titled “ Responses ”Campaign deleted.
Missing idempotency key.
Missing or invalid bearer token.
Bearer token lacks manage scope or has no brand context.
Campaign not found or not owned by the caller.
CampaignId is not a UUID.