Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Identity__update User

This mutation is used to create a new user. This is a system admin only mutation. { permissions: ['*', 'create'], collectionName: 'identity__User', } Platform admin only. Needs the `identity__User` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).

MUTATIONidentity__updateUser(body: UpdateUserFromAdmin!, where: CommonFindDocumentDto!): Boolean!

This mutation is used to create a new user. This is a system admin only mutation. { permissions: ['*', 'create'], collectionName: 'identity__User', } Platform admin only. Needs the identity__User update permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

body*
where*

Returns

identity__updateUser*Boolean!
Example Request
mutation Identity__updateUser($body: UpdateUserFromAdmin!, $where: CommonFindDocumentDto!) {  identity__updateUser(body: $body, where: $where)}
Variables
{  "body": {    "accountStatus": "ACTIVE",    "avatar": {      "external": "string",      "fileAssetId": "1"    }  },  "where": {    "and": [      {        "and": [          {            "and": [              {                "and": [                  {}                ],                "key": "string"              }            ],            "key": "string"          }        ],        "key": "string"      }    ],    "key": "string"  }}
Example Response
{  "data": {    "identity__updateUser": true  }}