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

# Update Call

> Update call metadata — tags, name, and custom metadata.

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH https://api.thinnest.ai/v2/calls/{call_id} \
    -H "Authorization: Bearer $THINNESTAI_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
    "tags": [
      "hot-lead",
      "pricing-discussed"
    ],
    "metadata": {
      "crm_id": "SF-12345"
    }
  }'
  ```

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

  url = "https://api.thinnest.ai/v2/calls/{call_id}"
  headers = {
      "Authorization": "Bearer " + "YOUR_THINNESTAI_API_KEY",
      "Content-Type": "application/json",
  }

  payload = {
    "tags": [
      "hot-lead",
      "pricing-discussed"
    ],
    "metadata": {
      "crm_id": "SF-12345"
    }
  }

  response = requests.patch(url, headers=headers, json=payload)
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.thinnest.ai/v2/calls/{call_id}", {
    method: "PATCH",
    headers: {
      "Authorization": "Bearer " + "YOUR_THINNESTAI_API_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
    "tags": [
      "hot-lead",
      "pricing-discussed"
    ],
    "metadata": {
      "crm_id": "SF-12345"
    }
  }),
  });

  const data = await response.json();
  console.log(data);
  ```

  ```go Go theme={null}
  package main

  import (
      "bytes"
      "fmt"
      "io"
      "net/http"
  )

  func main() {
      payload := []byte(`{
    "tags": [
      "hot-lead",
      "pricing-discussed"
    ],
    "metadata": {
      "crm_id": "SF-12345"
    }
  }`)
      req, _ := http.NewRequest("PATCH", "https://api.thinnest.ai/v2/calls/{call_id}", bytes.NewBuffer(payload))
      req.Header.Set("Authorization", "Bearer YOUR_THINNESTAI_API_KEY")
      req.Header.Set("Content-Type", "application/json")

      resp, err := http.DefaultClient.Do(req)
      if err != nil { panic(err) }
      defer resp.Body.Close()
      body, _ := io.ReadAll(resp.Body)
      fmt.Println(string(body))
  }
  ```
</RequestExample>

***

## Request Body

<ParamField body="tags" type="array">
  Call tags (replaces existing tags)
</ParamField>

<ParamField body="metadata" type="object">
  Custom key-value metadata
</ParamField>

***

## Response `200`

Returns the full updated call object (see [Get Call](/api-reference/calls/get)).

***

## Errors

| Code  | Description                        |
| ----- | ---------------------------------- |
| `404` | Call not found                     |
| `403` | Not authorized to update this call |
