Skip to main content
Replace Policy Settings
curl --request POST \
  --url https://api.coralogix.com/mgmt/openapi/5/dataplans/policiy-settings/v1 \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "logsPolicySettings": {
    "defaultPriority": "PRIORITY_TYPE_UNSPECIFIED"
  },
  "spansPolicySettings": {
    "defaultPriority": "PRIORITY_TYPE_UNSPECIFIED"
  }
}
'
{
  "logsPolicySettings": {
    "defaultPriority": "PRIORITY_TYPE_UNSPECIFIED"
  },
  "spansPolicySettings": {
    "defaultPriority": "PRIORITY_TYPE_UNSPECIFIED"
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

This data structure is used to replace default policy priority settings for logs and/or spans. Server-generated fields (created_at, updated_at) will be ignored if provided.

logsPolicySettings
Logs Source Policy · object

This data structure is used to define the default priority for logs policies.

spansPolicySettings
Spans Source Policy · object

This data structure is used to define the default priority for spans policies.

Response

This data structure is returned when replacing policy settings. It contains the complete resource including server-generated fields.

logsPolicySettings
Logs Source Policy · object

This data structure is used to define the default priority for logs policies.

spansPolicySettings
Spans Source Policy · object

This data structure is used to define the default priority for spans policies.