Delete prospects from a draft campaign.
draft campaign. Call with { all: true } to clear the entire roster, or { prospect_ids: [...] } to cherry-pick up to 500 at a time. Campaign stats are recomputed atomically after the delete.
/api/campaigns/{id}/leads with other verbs. See the sibling page for related operations on the same resource.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Campaign UUID
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Supply either prospect_ids (for targeted deletes) or all: true (for a wipe). At least one must be present.
Explicit list of prospect IDs to delete. 1–500 per call. Mutually exclusive with all.
1 - 500 elements^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$When true, deletes every prospect in the campaign. Overrides prospect_ids.
true Prospects deleted. Returns the deletion count.
Count of prospects deleted, or the string "all" when the all flag was used.
0 <= x <= 9007199254740991