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

# Update Lead in Campaign

> Edit a single lead's profile fields.

**CLI:**

```bash theme={null}
puffle campaign lead update --id <id> --prospect-id <prospect-id> --updates <updates>
```

## Overview

Edit a single lead's profile fields. Draft campaigns only. Non-listed fields are ignored. Status and sequencing columns are not editable through this endpoint.

<Note>
  This operation shares the URL path `/api/campaigns/{id}/leads` with other verbs. See [the sibling page](/api-reference/campaigns/get-leads-in-campaign) for related operations on the same resource.
</Note>


## OpenAPI

````yaml patch /api/campaigns/{id}/leads
openapi: 3.0.3
info:
  title: Puffle API
  version: 1.0.0
  description: >-
    HTTP API for the Puffle GTM platform - Feed and Lead Finder search
    preparation, campaign-backed Outbound execution, Puffle Agent runs, sender
    management, and Unibox reply workflows. Designed for operation by both
    humans and autonomous AI agents. Agents should start at the [Agent
    Playbook](/guides/agent-playbook) which prescribes a workspace-context check
    (`GET /api/context`) and core user journeys with exact call ordering.
  contact:
    name: Puffle Support
    url: https://puffle.ai
servers:
  - url: https://app.puffle.ai
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Campaigns
    description: >-
      Campaign-backed Outbound execution. These endpoints manage draft,
      launching, active, paused, and completed Outbound runs with sequence
      nodes, contacts, and sender accounts.
  - name: Accounts
    description: Signed-in user account, settings, and workspace context endpoints.
  - name: Billing
    description: Billing customer portal and account billing endpoints.
  - name: Senders
    description: >-
      Connected sender accounts, email inboxes, sending domains, DNS
      verification, warmup, and sender capacity.
  - name: Socials
    description: >-
      Read connected LinkedIn and X accounts, review current and archived posts,
      and reconcile publication status. Creating, editing, scheduling,
      publishing, OAuth connection, analytics, and mentions remain
      dashboard-managed workflows and are not part of the public Bearer-token
      API.
paths:
  /api/campaigns/{id}/leads:
    patch:
      tags:
        - Campaigns
      summary: Update Lead in Campaign
      description: Edit a single lead's profile fields inside a draft campaign.
      operationId: updateLeadInCampaign
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            description: Campaign UUID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                prospect_id:
                  type: string
                  format: uuid
                updates:
                  type: object
                  properties:
                    email:
                      type: string
                      nullable: true
                    linkedin_url:
                      type: string
                      nullable: true
                    first_name:
                      type: string
                      nullable: true
                    last_name:
                      type: string
                      nullable: true
                    name:
                      type: string
                      nullable: true
                    company:
                      type: string
                      nullable: true
                    position:
                      type: string
                      nullable: true
                    headline:
                      type: string
                      nullable: true
                  additionalProperties: false
              required:
                - prospect_id
                - updates
              additionalProperties: false
      responses:
        '200':
          description: Lead updated successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  prospect:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      campaign_id:
                        type: string
                        format: uuid
                      user_id:
                        type: string
                        format: uuid
                      status:
                        type: string
                      email:
                        type: string
                        format: email
                        nullable: true
                      linkedin_url:
                        type: string
                        nullable: true
                      first_name:
                        type: string
                        nullable: true
                      last_name:
                        type: string
                        nullable: true
                      name:
                        type: string
                        nullable: true
                      company:
                        type: string
                        nullable: true
                      position:
                        type: string
                        nullable: true
                      headline:
                        type: string
                        nullable: true
                      custom_fields:
                        type: object
                        additionalProperties: {}
                        nullable: true
                      source:
                        type: string
                        nullable: true
                      source_ref:
                        type: string
                        nullable: true
                      created_at:
                        type: string
                        format: date-time
                      updated_at:
                        type: string
                        format: date-time
                      bounced_at:
                        type: string
                        format: date-time
                        nullable: true
                      replied_at:
                        type: string
                        format: date-time
                        nullable: true
                      current_node_id:
                        type: string
                        format: uuid
                        nullable: true
                    required:
                      - id
                      - campaign_id
                      - user_id
                      - status
                    additionalProperties: {}
                    description: Canonical campaign lead row.
                required:
                  - prospect
                additionalProperties: false
        '400':
          description: Validation failure or campaign is not editable.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '401':
          description: Missing or invalid authentication.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '404':
          description: Campaign doesn't exist or isn't owned by the caller.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '500':
          description: Lead update failed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: pk_live_...

````