---
title: "Update lead status"
method: PATCH
path: "/api/v1/chatbots/{id}/leads/{leadId}"
---

# Update lead status

`PATCH /api/v1/chatbots/{id}/leads/{leadId}`

## Request

- Base URL: `https://smartwebchat.eu`
- URL: `https://smartwebchat.eu/api/v1/chatbots/{id}/leads/{leadId}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required
- `leadId` string, required

## Request body

- object
  - `status` 'new' | 'contacted' | 'closed', required

## Response `200`

Updated lead

## Other responses

- `400`: Invalid status
- `401`: Missing or invalid API key
- `404`: Chatbot or lead not found
- `429`: Rate limit exceeded: 600 requests per minute per account across all /api/v1/ routes. Wait for the seconds given in Retry-After (60) and retry.

---

[API](https://skmtc.dev/smartwebchat/apis/smartwebchat-api.md) · [All operations](https://skmtc.dev/smartwebchat/apis/smartwebchat-api/llms.txt) · [OpenAPI document](https://skmtc.dev/smartwebchat/apis/smartwebchat-api/revisions/1b052502dacb?raw)
