Mutation
mutation UpdateUser($input: UpdateUserInput!) {
updateUser(input: $input) {
user {
email
uid
fullName
accountType
status
inviteStatus
}
}
}Variables
{
"input": {
"uid": "string",
"accountType": "ADMIN"
}
}Response
{
"data": {
"updateUser": {
"user": {
"email": "string",
"uid": "string",
"fullName": "string",
"accountType": "ADMIN",
"status": "ACTIVE",
"inviteStatus": "PENDING"
}
}
}
}updateUser
Changes the role of an active member of a workspace. It acts on the workspace the API key targets: a workspace key’s own, or the one in the X-Paradime-Workspace header. Needs users:admin:write.
MUTATION
updateUser(input: UpdateUserInput!): UpdateUserPayload!Arguments
input
required
The user and their new role.
Returns
user
User!
The user, with their new role.
Mutation
mutation UpdateUser($input: UpdateUserInput!) {
updateUser(input: $input) {
user {
email
uid
fullName
accountType
status
inviteStatus
}
}
}Variables
{
"input": {
"uid": "string",
"accountType": "ADMIN"
}
}Response
{
"data": {
"updateUser": {
"user": {
"email": "string",
"uid": "string",
"fullName": "string",
"accountType": "ADMIN",
"status": "ACTIVE",
"inviteStatus": "PENDING"
}
}
}
}