Skip to main content
Toggle Policies
curl --request POST \
  --url https://api.coralogix.com/mgmt/openapi/latest/dataplans/policies/v1/toggle \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "enabled": true,
  "id": "id"
}
'
{
  "enabled": true,
  "id": "id"
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

This data structue is used to toggle a policy by its ID.

enabled
boolean
required
Example:

true

id
string
required
Example:

"id"

Response

This data structue is obtained when toggling a policy by its ID.

enabled
boolean
required
Example:

true

id
string
required
Example:

"id"