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

# Update Monitoring Schedule

> Set the day and time of the competitor collection, every two weeks

Set the day and time of the competitor collection slot, and whether it runs at all.

> [!NOTE]
>
> **Every competitor is collected every two weeks.** The schedule is a weekly slot, at `day_of_week`, `hour`, `minute` and `timezone`, and each competitor runs at every other one: a competitor that already ran in the last ten days, for example from a run you started, skips the slot. Your competitors can therefore alternate between two weeks. `cadence` is pinned to `weekly` (the slot) in both directions. The team refresh (new people, leavers, role changes) stays monthly, inside one of the runs.

The schedule is on by default on Mondays at 11:00 Europe/Paris and collects only once you have added competitors.

What one collection reads:

* **The first run of a competitor**, started when you [add it](https://docs.clustr-ai.com/api-reference/register-competitor.md), reads the last **90 days** of its team's activity.
* **Each scheduled run** reads from that competitor's previous run, minus a week of overlap.
* Both directions: the comments and likes the team leaves on other people's posts, and the comments and likes other people leave on the team's own posts.

To collect outside the schedule, use [Run Competitor Monitoring](https://docs.clustr-ai.com/api-reference/run-competitor-monitoring.md).

```bash cURL theme={null}
curl -X PUT https://api.clustr-ai.com/api/public/competitor-monitoring/schedule \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": true,
    "schedule": {
      "cadence": "weekly",
      "day_of_week": 1,
      "hour": 11,
      "minute": 0,
      "timezone": "Europe/Paris"
    }
  }'
```

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

requests.put(
    "https://api.clustr-ai.com/api/public/competitor-monitoring/schedule",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={
        "enabled": True,
        "schedule": {
            "cadence": "weekly",
            "day_of_week": 1,
            "hour": 11,
            "minute": 0,
            "timezone": "Europe/Paris",
        },
    },
)
```

```javascript JavaScript theme={null}
await fetch("https://api.clustr-ai.com/api/public/competitor-monitoring/schedule", {
  method: "PUT",
  headers: { Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({
    enabled: true,
    schedule: { cadence: "weekly", day_of_week: 1, hour: 11, minute: 0, timezone: "Europe/Paris" },
  }),
});
```

```json 200 theme={null}
{
  "success": true,
  "data": {
    "feature_key": "competitor_monitoring",
    "enabled": true,
    "schedule": {
      "cadence": "weekly",
      "day_of_week": 1,
      "hour": 11,
      "minute": 0,
      "timezone": "Europe/Paris"
    }
  }
}
```


## OpenAPI

````yaml PUT /competitor-monitoring/schedule
openapi: 3.1.0
info:
  title: Clustr Public API
  description: >
    Programmatic access to your Clustr network: import connectors, search warm
    intros (opportunities), and manage target accounts.


    ## Authentication

    All endpoints require a Bearer token (API key) in the `Authorization`
    header.


    ```

    Authorization: Bearer <your_api_key>

    ```


    API keys can be created and managed from the [API settings
    page](https://app.clustr-ai.com/api).
  version: '1.0'
  contact:
    name: Clustr Support
    url: https://clustr-ai.com
servers:
  - url: https://api.clustr-ai.com/api/public
    description: Production
security:
  - BearerAuth: []
paths:
  /competitor-monitoring/schedule:
    put:
      tags:
        - Competitor Monitoring
      summary: Update Monitoring Schedule
      description: >-
        Sets when the automatic scan runs, and whether it runs at all. `cadence`
        is always stored and returned as `weekly`, and each competitor is
        scanned at every other weekly slot, so every two weeks: each scan is
        billed per tracked salesperson, and the activity it watches for unfolds
        over weeks. The team refresh stays monthly whatever the schedule.
      operationId: updateCompetitorMonitoringSchedule
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                enabled:
                  type: boolean
                  description: >-
                    Whether the scheduled scan runs. On by default. Set `false`
                    to stop automatic scans while keeping your competitors.
                schedule:
                  type: object
                  properties:
                    enabled:
                      type: boolean
                      description: >-
                        The same as the top-level `enabled`, inside the
                        schedule.
                    day_of_month:
                      type: integer
                      description: 'Accepted and ignored: the scan is weekly.'
                    last_run_at:
                      type: string
                      description: Set by Clustr when a scan runs. Leave it out.
                    cadence:
                      type: string
                      enum:
                        - weekly
                      description: >-
                        Always stored as `weekly`: the slot is weekly, and each
                        competitor runs at every other slot. `monthly` is also
                        accepted and stored as `weekly`.
                    day_of_week:
                      type: integer
                      description: >-
                        The day of the slot in `timezone`, from `0` (Sunday) to
                        `6` (Saturday). Defaults to Monday (`1`).
                    hour:
                      type: integer
                      description: The hour of the slot in `timezone`, from `0` to `23`.
                    minute:
                      type: integer
                      description: The minute of the slot, from `0` to `59`.
                    timezone:
                      type: string
                      description: >-
                        The IANA timezone of the slot, for example
                        `Europe/Paris`.
      responses:
        '200':
          description: The saved schedule
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - data
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    additionalProperties: true
        '401':
          description: Invalid or missing API key
        '403':
          description: Competitor monitoring is not enabled for this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          properties:
            message:
              type: string
              example: Invalid request body
            code:
              type: string
              example: BAD_REQUEST
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: The API key you created on the API settings page of the Clustr app.

````

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