Skip to main content

createRoleWithPreset

Create a custom role pre-seeded from a named preset. The grant matrix is computed server-side from the canonical protocol definition, and the preset origin is recorded so the role can later be reset to it. Gated by accord.workspace.member.update.

createRoleWithPreset(
input: CreateRoleWithPresetInput!
): CreateRoleWithPresetPayload

Arguments

createRoleWithPreset.input ● CreateRoleWithPresetInput! non-null input

The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields.

Type

CreateRoleWithPresetPayload object