move_lead_to_pipeline
Transfer a lead to a designated pipeline in Kommo CRM by specifying lead and pipeline IDs. Optionally assign a status to streamline workflow management and pipeline operations efficiently.
Instructions
Move a lead to a specific pipeline
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lead_id | Yes | ID of the lead | |
| pipeline_id | Yes | ID of the target pipeline | |
| status_id | No | ID of the target status (optional) |
Implementation Reference
- src/kommo-api.ts:409-416 (helper)Supporting utility method in KommoAPI class that moves a lead to a specified pipeline and optionally a status by patching the lead entity via Kommo API.async moveLeadToPipeline(leadId: number, pipelineId: number, statusId?: number): Promise<KommoLead> { const updateData: any = { pipeline_id: pipelineId }; if (statusId) { updateData.status_id = statusId; } const response = await this.client.patch(`/api/v4/leads/${leadId}`, updateData); return response.data; }