Skip to main content
POST
Reset Lead Approvals

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

campaign_id
string<uuid>
required
campaign_lead_id
string<uuid>
required

Body

application/json

POST /campaigns/{id}/leads/{lead_id}/reset body.

step_indices=None OR step_indices=[] clears every approved step. A non-empty list selectively clears those step indices.

step_indices
integer[] | null

If omitted or empty, all approved steps are cleared.

Response

Successful Response

POST approve/unapprove/reset response.

campaign_id
string<uuid>
required
campaign_lead_id
string<uuid>
required
updated_at
string<date-time>
required
step_index
integer | null
approved_steps
integer[]

All step indices currently approved for this lead after the operation.

approved_entry
ApprovedEmailEntry · object | null

One entry in campaign_leads.metadata.approved_emails.