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

# Update Lead

> Update information for a specific lead across all campaigns it appears in.

## Headers

<ParamField header="token" type="string" required>
  Your LinkedCamp API token.
</ParamField>

## Body Parameters

<ParamField body="profileLink" type="string" required>
  The LinkedIn profile URL of the lead to update. Must be a valid `linkedin.com` URL.
</ParamField>

<ParamField body="firstName" type="string">
  Updated first name.
</ParamField>

<ParamField body="lastName" type="string">
  Updated last name.
</ParamField>

<ParamField body="email" type="string">
  Updated email address.
</ParamField>

<ParamField body="emailStatus" type="string">
  Email verification status. Defaults to `unknown` if an email is provided without a status.
</ParamField>

<Note>
  Any additional fields passed in the request body will be stored as custom fields on the lead and campaign.
</Note>

## Response

<ResponseField name="success" type="boolean">
  Whether the request was successful.
</ResponseField>

<ResponseField name="message" type="string">
  A human-readable result message.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api.linkedcamp.com/leads/update \
    -H "token: YOUR_API_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{
      "profileLink": "https://www.linkedin.com/in/johndoe",
      "firstName": "John",
      "lastName": "Doe",
      "email": "john@acme.com",
      "emailStatus": "valid",
      "company": "Acme Corp",
      "phone": "+1234567890"
    }'
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://api.linkedcamp.com/leads/update",
      headers={"token": "YOUR_API_TOKEN"},
      json={
          "profileLink": "https://www.linkedin.com/in/johndoe",
          "firstName": "John",
          "lastName": "Doe",
          "email": "john@acme.com",
          "emailStatus": "valid",
          "company": "Acme Corp",
          "phone": "+1234567890",
      },
  )
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.linkedcamp.com/leads/update", {
    method: "POST",
    headers: {
      "token": "YOUR_API_TOKEN",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      profileLink: "https://www.linkedin.com/in/johndoe",
      firstName: "John",
      lastName: "Doe",
      email: "john@acme.com",
      emailStatus: "valid",
      company: "Acme Corp",
      phone: "+1234567890",
    }),
  });
  const data = await response.json();
  console.log(data);
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "message": "Lead updated successfully!"
  }
  ```

  ```json 200 - Error theme={null}
  {
    "success": false,
    "message": "Lead doesn't exists in this user campaigns!"
  }
  ```
</ResponseExample>
