Skip to main content
PUT
/
api
/
v1
/
monitors
/
{id}
/
toggle
Toggle a Monitor
curl --request PUT \
  --url https://app.datafold.com/api/v1/monitors/{id}/toggle \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "enabled": true
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Use the 'Authorization' header with the format 'Key '

Path Parameters

id
integer
required

The unique identifier of the monitor.

Body

application/json
enabled
boolean
required

Indicate whether to enable or disable the monitor.

Response

Successful Response