move_lead_to_status
Move a lead to a specified status in Kommo CRM by providing the lead ID and target status ID, enabling precise workflow and pipeline management.
Instructions
Move a lead to a specific status
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lead_id | Yes | ID of the lead | |
| status_id | Yes | ID of the target status |
Implementation Reference
- src/kommo-api.ts:404-407 (handler)This is the core handler function that implements the logic to move a lead to a specific status in Kommo CRM by sending a PATCH request to update the status_id of the lead.async moveLeadToStatus(leadId: number, statusId: number): Promise<KommoLead> { const response = await this.client.patch(`/api/v4/leads/${leadId}`, { status_id: statusId }); return response.data; }