v1

latestOpenAPI 3.0.32026-07-17365370.0 KB
PolicyService

Update a Rule.

patch/v1alpha1/policies/{policyId}/rules/{ruleId}

Path parameters

policyIdstring required

The Policy Id to which these Rules belong.

ruleIdstring required

Rule Id to update.

Request body

policyIdstring

The Policy Id to which these Rules belong.

ruleIdstring

Rule Id to update.

namestring

A human-readable name for the Rule.

descriptionstring

A human-readable description for the Rule.

tasksstring[]

The tasks that this Rule applies to.

needsApprovalboolean

Need User Approval for this Rule.

action'RULE_ACTION_UNSPECIFIED' | 'RULE_ACTION_ALLOW' | 'RULE_ACTION_DENY' enum

The action applied for the rule when calling the tasks

Response

OK

idstring

A unique identifier for the Rule.

namestring required

A human-readable name for the Rule.

descriptionstring

A human-readable description for the Rule.

policyIdstring
action'RULE_ACTION_UNSPECIFIED' | 'RULE_ACTION_ALLOW' | 'RULE_ACTION_DENY' enum required

The action applied for the rule when calling the specified tasks

needsApprovalboolean required

Need User Approval for this Rule.

createdAtstring date-time

CreatedAt records the timestamp of when the Rule was initially created