Core GraphQL APIReferenceMutations
Identity__create Role
Requires a signed-in staff user. Needs the `identity__Role` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).
MUTATION
identity__createRole(body: CreateRoleInput!): CommonMutationResponse!Requires a signed-in staff user. Needs the identity__Role create permission. Send the x-tenant header (the gateway sets it from your API key).
Arguments
body*Returns
- identity__createRole
_id*ID!Example Request
mutation Identity__createRole($body: CreateRoleInput!) { identity__createRole(body: $body) { _id }}{ "body": { "name": "string" }}{ "data": { "identity__createRole": { "_id": "1" } }}