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

# Update watchlist

> Replace the symbols in the user's watchlist.

## Body

Content type: `application/json`

<ParamField body="symbols" type="string[]" required />

## Response

`200` Success.

<ResponseField name="success" type="boolean" />

<ResponseField name="data" type="object[]">
  <Expandable title="properties">
    <ResponseField name="_id" type="string" />

    <ResponseField name="logo" type="string" />

    <ResponseField name="friendlyName" type="string" />

    <ResponseField name="leveraged" type="boolean" />

    <ResponseField name="delayed" type="boolean" />

    <ResponseField name="sharia" type="boolean" />

    <ResponseField name="digits" type="number" />
  </Expandable>
</ResponseField>

## Possible Errors

| Error | Possible cause | What to do |
| - | - | - |
| 400 | Invalid or missing field | Check the request against the schema. |
| 401 | Token missing or expired | Log in again or use the refresh token. |
| 403 | IP not whitelisted, or account restricted | Confirm your IP is whitelisted; otherwise contact Amana. |
| 429 / 5xx | Rate limit, or temporary issue on our side | Retry with backoff; contact support if it persists. |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://gateway.amana.io/watchlist' \
    --header 'Authorization: Bearer <token>' \
    --header 'Content-Type: application/json' \
    --data '{
    "symbols": [
      "<string>"
    ]
  }'
  ```

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

  url = "https://gateway.amana.io/watchlist"
  headers = {"Authorization": "Bearer <token>", "Content-Type": "application/json"}
  payload = {
      "symbols": [
          "<string>"
      ]
  }

  response = requests.request("POST", url, json=payload, headers=headers)
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://gateway.amana.io/watchlist', {
    method: 'POST',
    headers: {"Authorization": "Bearer <token>", "Content-Type": "application/json"},
    body: JSON.stringify({"symbols": ["<string>"]}),
  });
  console.log(await response.json());
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "data": [
      {
        "_id": "<string>",
        "logo": "<string>",
        "friendlyName": "<string>",
        "leveraged": true,
        "delayed": true,
        "sharia": true,
        "digits": 123.45
      }
    ]
  }
  ```

  ```json 400 theme={null}
  {
    "error": "<string>",
    "message": "<string>",
    "details": {}
  }
  ```

  ```json 401 theme={null}
  {
    "error": "<string>",
    "message": "<string>",
    "details": {}
  }
  ```

  ```json 403 theme={null}
  {
    "error": "<string>",
    "message": "<string>"
  }
  ```

  ```json 429 theme={null}
  {
    "error": "<string>",
    "message": "<string>"
  }
  ```

  ```json 500 theme={null}
  {
    "error": "<string>",
    "message": "<string>"
  }
  ```
</ResponseExample>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.