actions

Create an organization Actions policy

Create an Actions policy for an organization. Omitting workflow_path targets all workflows without storing an explicit condition.

post/orgs/{org}/actions/policies

Path parameters

orgstring required

The organization name. The name is not case sensitive.

Request body

namestring required

The name of the policy.

enforcement'disabled' | 'active' | 'evaluate' required

The enforcement level of the ruleset. evaluate allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. evaluate is not available for the repository target.

Response

Response

idinteger required

The ID of the policy

namestring required

The name of the policy

target'actions' required

The target of the policy

source_type'Repository' | 'Organization' | 'Enterprise' required

The type of the source of the policy

sourcestring required

The name of the source

enforcement'disabled' | 'active' | 'evaluate' required

The enforcement level of the ruleset. evaluate allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. evaluate is not available for the repository target.

node_idstring
created_atstring date-time
updated_atstring date-time

Changes