---
title: "Update a lead's labels"
method: PATCH
path: "/api/v1/leads/{id}"
tags: ["API Reference"]
---

# Update a lead's labels

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

## Request

- Base URL: `https://revnu.com`
- URL: `https://revnu.com/api/v1/leads/{id}`
- Auth: HTTP bearer

Set vertical, archetype and tags on a lead. The only write on leads: the API can't create leads or change status, drafts or contacts.

Requires the `leads:write` scope.

**Response.** `{ "lead": { id, domain, vertical, archetype, tags } }`, the labels as stored. The response carries nothing a `leads:read` token would show; read the lead back for the rest. Status, drafts, contacts and research stay read-only; the agent and the dashboard own them. `404` for an unknown or another account's lead.

## Path parameters

- `id` string, required

## Request body

- object

## Response `200`

{ "lead": { id, domain, vertical, archetype, tags } }, the labels as stored. The response carries nothing a leads:read token would show; read the lead back for the rest. Status, drafts, contacts and research stay read-only; the agent and the dashboard own them. 404 for an unknown or another account'

- object
  - `lead` object, required
    - `id` string, required
    - `domain` string, required
    - `vertical` string, nullable, required
    - `archetype` string, nullable, required
    - `tags` string[], required

## Other responses

- `400`: The request is malformed; the error names the problem.
- `401`: Missing, malformed, unknown or revoked token.
- `402`: `setup_pending`: the account hasn't started its trial. Finish setup with `GET /setup`.
- `403`: The token lacks the scope in `requiredScope`.
- `404`: Unknown id, or another account's id.
- `409`: A settled refusal: `invalid_action` (see `actions`) or `rejected`.
- `429`: Rate limited.
- `503`: Temporarily unavailable; retry the same call.

---

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