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

# Update Monitor

> Update a monitor's settings.

## Authentication

Requires an API key in the `Authorization` header.

```bash theme={"dark"}
Authorization: Bearer YOUR_API_KEY
```

## Path parameters

<ParamField path="id" type="string" required>
  The monitor's unique identifier (UUID).
</ParamField>

## Request

All fields are optional — only include the fields you want to update.

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

<ParamField body="frequency" type="string">
  Updated run frequency: `monthly` or `quarterly`.
</ParamField>

<ParamField body="change_detection" type="string">
  Updated detection mode: `diff_only` or `full_refresh`.
</ParamField>

<ParamField body="status" type="string">
  Pause or resume: `active` or `paused`.
</ParamField>

<ParamField body="tracked_fields" type="string">
  JSON-encoded array of field names to track. Empty array `"[]"` tracks all fields.

  Available fields: `first_name`, `last_name`, `company`, `job_role`, `city`, `country`, `bio`, `industry`, `education`, `validity`
</ParamField>

### Example request

```bash theme={"dark"}
curl -X PATCH https://encrata.com/api/monitors/a1b2c3d4-... \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "name": "Updated name",
    "frequency": "quarterly",
    "tracked_fields": "[\"company\",\"job_role\"]"
  }'
```

## Response

Returns the updated monitor object.
