> ## Documentation Index
> Fetch the complete documentation index at: https://docs.propal.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a lead



## OpenAPI

````yaml /openapi.json patch /v1/leads/{id}
openapi: 3.1.0
info:
  title: Propal Public API
  version: 1.0.0
  description: >-
    Public REST API for Propal — proposals, leads, catalog, templates, themes,
    media, metrics, and organization. An MCP (Model Context Protocol) endpoint
    is also available at `POST /v1/mcp` for AI agents — it requires the
    `mcp:use` scope and exposes the same resources as tools, plus prefab section
    templates to compose proposals.
servers:
  - url: https://api.propal.io
    description: Production
security: []
paths:
  /v1/leads/{id}:
    patch:
      tags:
        - Leads
      summary: Update a lead
      parameters:
        - schema:
            type: string
            format: uuid
            description: Lead UUID
          required: true
          name: id
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 255
                email:
                  anyOf:
                    - type: string
                      format: email
                    - type: string
                      enum:
                        - ''
                company:
                  type: string
                phone:
                  type: string
                address:
                  type: string
                city:
                  type: string
                state:
                  type: string
                zip:
                  type: string
                country:
                  type: string
                siret:
                  type: string
                tva:
                  type: string
      responses:
        '200':
          description: Updated lead
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  name:
                    type: string
                  email:
                    type: string
                    nullable: true
                  company:
                    type: string
                    nullable: true
                  phone:
                    type: string
                    nullable: true
                  website:
                    type: string
                    nullable: true
                  address:
                    type: string
                    nullable: true
                  city:
                    type: string
                    nullable: true
                  state:
                    type: string
                    nullable: true
                  zip:
                    type: string
                    nullable: true
                  country:
                    type: string
                    nullable: true
                  siret:
                    type: string
                    nullable: true
                  tva:
                    type: string
                    nullable: true
                  language:
                    type: string
                    nullable: true
                  status:
                    type: string
                  created_at:
                    type: string
                  updated_at:
                    type: string
                    nullable: true
                required:
                  - id
                  - name
                  - email
                  - company
                  - phone
                  - website
                  - address
                  - city
                  - state
                  - zip
                  - country
                  - siret
                  - tva
                  - language
                  - status
                  - created_at
                  - updated_at
        '400':
          description: Validation error
        '401':
          description: Unauthorized — missing or invalid API key
        '403':
          description: Forbidden — API key missing required scope
        '404':
          description: Resource not found
        '429':
          description: Rate limit exceeded
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'API key in format: pp_live_xxxxxxxxxxxxxxxxxxxxxxxx'

````