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
| Argument | Type | Default | Description |
|---|---|---|---|
input | UserUpdateRequestInput | Provide the specific user details you want to update here, like name. |
Returns
Example
Request
mutation UpdateUser($input: UserUpdateRequestInput) {
updateUser(input: $input) {
user {
created
email
emailVerified
id
lastLogin
loginsCount
name
orgRoles
roles
updated
}
}
}