Skip to main content

Create an access policy

POST 

/api/v1/AccessControlPolicy

Creates an access policy and returns it with its new id. A policy is either Resource based, which lets users run the policy activities on its resources, or Credential based, which lets users release a credential during a session. A Credential based policy automatically gets the Credential Release and File Release activities. The name must be unique among all access policies. Add members afterwards with the add routes.

Permission required: Administrator or application.

Values for policyType: 0 = Resource, 1 = Credential.

Request​

Responses​

The policy was created. The body is the new policy with its id. In it, approvalTypeRequired is always 0, notesRequired and ticketRequired are false and activityConfiguration is null; read the policy back with the Get route for current values.