Cut.ProDocs
Monitoring

Update a monitor

Changes only the fields sent; null clears template_id and the duration limits. enabled follows the same rules as start and stop. Refusals: 400 INVALID_DURATION_RANGE, 402, 403, 404, 409 MINIMUM_MONITORING_TIME.

X-Api-Key<token>

In: header

Path Parameters

id*string
Match^[0-9]{1,19}$

Request Body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

PATCH
/monitors/{id}
curl -X PATCH "https://example.com/monitors/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "type": "live",  "platform": "youtube",  "username": "string",  "display_name": "string",  "avatar_url": "string",  "enabled": true,  "enabled_at": "string",  "strategy_id": "string",  "template_id": "string",  "video_min_duration": 0,  "video_max_duration": 0,  "days_of_week": [    0  ],  "hours_of_day": [    [      0    ]  ]}