---
updatedAt: 2026-06-29T14:15:06.000Z
agentTools:
  projectIndex: https://developers.kommo.com/llms.txt
---

# Update lead

This method allows updating a single lead. Pass an object to update a single lead.

**Limitations**\
The method is available in accordance with the user’s rights.

**Data type header when the request is successful**\
Content-Type: application/hal+json

**Data type header in case of an error**\
Content-Type: application/problem+json

**Response parameters**\
Method returns a collection of created leads.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "kommo-api-references",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://{subdomain}.kommo.com",
      "variables": {
        "subdomain": {
          "default": "subdomain"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/v4/leads/{id}": {
      "patch": {
        "summary": "Update lead",
        "description": "This method allows updating a single lead. Pass an object to update a single lead.",
        "operationId": "updating-single-lead",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "Lead ID",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Lead name"
                  },
                  "price": {
                    "type": "number",
                    "description": "Lead sale"
                  },
                  "status_id": {
                    "type": "integer",
                    "description": "Stage ID the lead is added to, the first stage of the main pipeline by default.",
                    "format": "int32"
                  },
                  "pipeline_id": {
                    "type": "integer",
                    "description": "Pipeline ID the lead is added to.",
                    "format": "int32"
                  },
                  "created_by": {
                    "type": "integer",
                    "description": "The ID of the user creating the lead. When passing the value 0, the lead will be considered as created by the robot.",
                    "format": "int32"
                  },
                  "updated_by": {
                    "type": "integer",
                    "description": "The ID of the user updating the lead. When passing the value 0, the lead will be considered as created by the robot.",
                    "format": "int32"
                  },
                  "created_at": {
                    "type": "integer",
                    "description": "Lead creation date in the format of Unix Timestamp",
                    "format": "int32"
                  },
                  "updated_at": {
                    "type": "integer",
                    "description": "Lead update date in the format of Unix Timestamp",
                    "format": "int32"
                  },
                  "closed_at": {
                    "type": "integer",
                    "description": "Lead closure date in the format of Unix Timestamp",
                    "format": "int32"
                  },
                  "loss_reason_id": {
                    "type": "integer",
                    "description": "Lead loss reason ID",
                    "format": "int32"
                  },
                  "responsible_user_id": {
                    "type": "integer",
                    "description": "Lead responsible user ID",
                    "format": "int32"
                  },
                  "custom_fields_values": {
                    "type": "string",
                    "description": "An array of the current lead custom fields’ values",
                    "format": "json"
                  },
                  "_embedded": {
                    "type": "object",
                    "description": "Data of the tags added to a lead",
                    "properties": {
                      "tags": {
                        "type": "array",
                        "items": {
                          "properties": {
                            "id": {
                              "type": "integer",
                              "description": "Tag ID",
                              "format": "int32"
                            },
                            "name": {
                              "type": "string",
                              "description": "Tag name"
                            }
                          },
                          "type": "object"
                        }
                      }
                    }
                  },
                  "request_id": {
                    "type": "string",
                    "description": "Field that will be returned unchanged in the response and will not be saved."
                  },
                  "tags_to_add": {
                    "type": "array",
                    "description": "Array of tags to add. You need to pass either name or ID of the tag.",
                    "items": {
                      "properties": {
                        "id": {
                          "type": "integer",
                          "description": "Tag ID",
                          "format": "int32"
                        },
                        "name": {
                          "type": "string",
                          "description": "Tag name"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "tags_to_delete": {
                    "type": "array",
                    "description": "Array of tags to delete. You need to pass either name or ID of the tag.",
                    "items": {
                      "properties": {
                        "id": {
                          "type": "integer",
                          "description": "Tag ID",
                          "format": "int32"
                        },
                        "name": {
                          "type": "string",
                          "description": "Tag name"
                        }
                      },
                      "type": "object"
                    }
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "name": "Lead with Sam",
                    "price": 12000,
                    "status_id": 58141811,
                    "custom_fields_values": [
                      {
                        "field_id": 184994,
                        "values": [
                          {
                            "value": true
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Leads have been updated successfully": {
                    "value": {
                      "_links": {
                        "self": {
                          "href": "https://devteam.kommo.com/api/v4/leads"
                        }
                      },
                      "_embedded": {
                        "leads": [
                          {
                            "id": 152464,
                            "updated_at": 1686732474,
                            "_links": {
                              "self": {
                                "href": "https://devteam.kommo.com/api/v4/leads/152464"
                              }
                            }
                          },
                          {
                            "id": 152462,
                            "updated_at": 1686732474,
                            "_links": {
                              "self": {
                                "href": "https://devteam.kommo.com/api/v4/leads/152462"
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "_links": {
                      "type": "object",
                      "properties": {
                        "self": {
                          "type": "object",
                          "properties": {
                            "href": {
                              "type": "string",
                              "example": "https://devteam.kommo.com/api/v4/leads"
                            }
                          }
                        }
                      }
                    },
                    "_embedded": {
                      "type": "object",
                      "properties": {
                        "leads": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 152464,
                                "default": 0
                              },
                              "updated_at": {
                                "type": "integer",
                                "example": 1686732474,
                                "default": 0
                              },
                              "_links": {
                                "type": "object",
                                "properties": {
                                  "self": {
                                    "type": "object",
                                    "properties": {
                                      "href": {
                                        "type": "string",
                                        "example": "https://devteam.kommo.com/api/v4/leads/152464"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Invalid data given. Details are available in the request response": {
                    "value": "\n"
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "User is not authorized": {
                    "value": "{\n  \"title\": \"Unauthorized\",\n  \"type\": \"https://httpstatus.es/401\",\n  \"status\": 401,\n  \"detail\": \"Invalid user name or password\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string",
                      "example": "Unauthorized"
                    },
                    "type": {
                      "type": "string",
                      "example": "https://httpstatus.es/401"
                    },
                    "status": {
                      "type": "integer",
                      "example": 401,
                      "default": 0
                    },
                    "detail": {
                      "type": "string",
                      "example": "Invalid user name or password"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "429",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          },
          "500": {
            "description": "500",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```