Skip to main content

updatePolicy

form schema

Edit a group policy's effect, actions, or conditions in place.

The group is fixed at create time and cannot be changed — to retarget a policy, delete it and create a new one. Omit a field from the input to leave it unchanged. Set conditions to "*" explicitly to clear conditions and turn the policy into a wildcard. Setting actions replaces the entire list (no merge).

updatePolicy(
organizationId: ID!
id: UUID!
input: UpdatePolicyInput!
): PolicyPayload

Form Schema

This mutation supports dynamic form generation using JSON Schema.

Loading schema...

Arguments

updatePolicy.organizationId ● ID! non-null scalar {#organization-id}

Your organization's unique identifier.

updatePolicy.id ● UUID! non-null scalar {#id}

The policy's unique identifier.

updatePolicy.input ● UpdatePolicyInput! non-null input {#input}

Edit an existing policy in place. The principal cannot be changed.

Type

PolicyPayload object