Skip to main content
Update Policy

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

This data structue is used to update an existing policy.

id
string
required

Unique identifier of the policy to update.

Required string length: 36
Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Example:

"3dc02998-0b50-4ea8-b68a-4779d716fa1f"

logRules
Log Rules · object
required

Log rules for a policy.

applicationRule
object

Rule.

archiveRetention
object

Archive retention.

description
string

Optional free-text description of the policy's purpose. Only Latin-1 characters are accepted.

Maximum string length: 255
Pattern: ^[\x00-\xFF]*$
Example:

"My Policy Description"

enabled
boolean

Indicates whether the policy should be actively evaluated and applied.

Example:

true

name
string

Human-readable name for the policy. Only Latin-1 characters are accepted.

Required string length: 1 - 255
Pattern: ^[\x00-\xFF]*$
Example:

"My Policy"

priority
enum<string>

TCO priority level assigned to a policy, controlling how data is routed and archived.

Available options:
PRIORITY_TYPE_UNSPECIFIED,
PRIORITY_TYPE_BLOCK,
PRIORITY_TYPE_LOW,
PRIORITY_TYPE_MEDIUM,
PRIORITY_TYPE_HIGH
priorityOverride
object

Priority override.

rumRules
Log Rules · object

Log rules for a policy.

spanRules
object

Span rules.

subsystemRule
object

Rule.

targets
Target · object[]

List of data targets/destinations to which this policy routes data.

Maximum array length: 5

Response

This data structue is obtained when updating a policy.

policy
Policy · object
required

A policy is a set of rules that define the behavior of the Coralogix system for a specific company.