Skip to main content

updateUser

Mutation

Used to update information about a user. If you're using an admin token, you can update the information of other users; if not, you can only update your own details.

updateUser(input: UserUpdateRequestInput): UserUpdateResponse

Arguments​

ArgumentTypeDefaultDescription
inputUserUpdateRequestInputProvide the specific user details you want to update here, like name.

Returns​

UserUpdateResponse

Example​

Request
mutation UpdateUser($input: UserUpdateRequestInput) {
updateUser(input: $input) {
user {
created
email
emailVerified
id
lastLogin
loginsCount
name
orgRoles
roles
updated
}
}
}