Skip to Content
StoreOSv0.27.1
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).

MUTATIONidentity__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

  1. identity__createRole
_id*ID!
Example Request
mutation Identity__createRole($body: CreateRoleInput!) {  identity__createRole(body: $body) {    _id  }}
Variables
{  "body": {    "name": "string"  }}
Example Response
{  "data": {    "identity__createRole": {      "_id": "1"    }  }}