context_fields_rename
Starts a background task that moves each lead's value from the old key to new_key, then renames the field itself. Leads that already hold new_key keep their existing value and are reported as conflicts.
Filters, views, automations and ${key} templates are not rewritten — call context_fields_references first to see what will be left dangling.
Returns {task_sqid}; poll jobs_get for progress.
Method: POST /api/v1/workspaces/{workspace_sqid}/context-fields/{sqid}/rename/
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>",
"new_key": "<new_key>"
},
"name": "context_fields_rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sqid | Yes | ||
| new_key | Yes | The key to move every lead's value to. Must be unused in this workspace, start with a letter, and contain only letters, digits and underscores. |