segments_purge
Empties the segment's lead membership list. The leads themselves stay in the workspace and in any other segments they belong to. Returns {purged: <count>}. Irreversible — re-populating needs another leads_bulk_add_to_segment or filter run.
Method: POST /api/v1/workspaces/{workspace_sqid}/segments/{sqid}/purge/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sqid": "<sqid>",
"name": "<name>"
},
"name": "segments_purge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| sqid | Yes | ||
| pinned | No | Pinned segments are shown in the main menu for quick access | |
| priority | No | When lead is included in multiple lists with active campaigns, the one with the highest priority will be processed first. | |
| description | No | Provide a concise profile covering key aspects: demographics (age, gender, income, education, occupation), geographic details (location, climate), psychographics (lifestyle, values, interests, motivations), behavioral traits (buying habits, usage patterns, brand loyalty), and specific needs or challenges. |