Skip to main content
PUT
Update Access Policy

Authentication and permissions

Token requirements: User-based token (OAuth) or Organization-scoped API key or Workspace-scoped API key. Send a bearer access token for one of these identities. The permissions and resource restrictions below also apply.
Permissions joined by + are all required; or separates alternatives. Full-access keys still cannot call endpoints marked unsupported. Workspace keys must allow every workspace checked by the request. OAuth access depends on the user’s roles and resource access.
  • Default request: Both approval fields are omitted, or non-empty approval_procedure replaces the policy’s existing approval. Custom workflows must belong to the policy’s workspace; user and group approvers must belong to its organization.
  • Attach an approval procedure: With a non-empty approval_procedure_id, the procedure must be a named approval procedure in the policy’s workspace.
  • Remove the approval procedure: An empty approval_procedure_id or an approval_procedure with no steps removes the policy’s approval. The two approval fields are mutually exclusive.
  • Add inline approval rules: A non-empty approval_procedure adds approval to a policy that currently has no approval procedure.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The ID of the access policy.

Body

application/json
name
string | null

The name of the access policy.

description
string | null

A description of the access policy.

maxAccessMinutes
integer<int32> | null

The maximum number of minutes that access can be granted for.

requireBusinessJustification
boolean | null

Whether a business justification is required when requesting access. Omit to leave unchanged.

The recommended duration in minutes for access requests (optional).

requireOnBehalfOfConfirmation
boolean | null

Whether requests made on behalf of others require the target user's confirmation. Omit to leave unchanged.

scopedId
string | null

Rekeys the policy's stable identity (apo_ + 22 base62 chars). Omit to leave unchanged. Must be unique within the workspace. The workspace-default policy cannot be rekeyed, and reserved sentinel values are rejected.

approvalProcedureId
string | null

The ID of a named approval procedure that must approve requests for roles governed by the policy. Send an empty string to remove approval. Attaching requires permission to view approval procedures and removing requires permission to delete them.

requireFormConfirmation
boolean | null

Collect access requests with a form. Omit to leave unchanged.

approvalProcedure
approval_procedure · object

Replaces inline approval rules, mutually exclusive with approval_procedure_id. Omit both approval fields to leave approval unchanged; an empty step list without a timeout removes it. A timeout requires nonempty steps. Omitted timeout uses 30 days. Nonempty replacements of staged inline rules must supply stage_number on every step. Custom workflows must be live and deployed in the policy's workspace. Automatic self-approval is enabled; approval justification requirements still apply. Notifications are not suppressed. Use the Approval Procedure API for manual self-approval or muted notifications.

Response

200 - application/json

Success

data
data · object

The updated access policy.