Update Policy
Authentication
AuthorizationBearer
Retrieve your API Key from Dashboard.
Path parameters
id
Request
This endpoint expects an object.
name
This is the name of the policy.
threshold
This is the threshold configuration for the policy.
lookbackWindowMinutes
This is the lookback window in minutes. The policy will query events from the last N minutes.
severity
This is the severity level of issues created by this policy.
Allowed values:
schedule
This is the schedule configuration for when the policy should run.
monitorIds
These are the monitor IDs to associate with this policy. This creates entries in the monitor-policy join table.
Response
name
This is the name of the policy.
threshold
This is the threshold configuration for the policy.
lookbackWindowMinutes
This is the lookback window in minutes. The policy will query events from the last N minutes.
severity
This is the severity level of issues created by this policy.
Allowed values:
id
This is the unique identifier for the policy.
orgId
This is the unique identifier for the org that this policy belongs to.
createdAt
This is the ISO 8601 date-time string of when the policy was created.
updatedAt
This is the ISO 8601 date-time string of when the policy was last updated.
monitorIds
These are the monitor IDs associated with this policy.
This is only present when retrieving a single policy by ID.
schedule
This is the schedule configuration for when the policy should run.
lastRunAt
This is the ISO 8601 date-time string of when the policy was last run.