API reference
changeUserPassword
Required permission: UserWrite
changeUserPassword(
userId: ID!
oldPassword: String!
newPassword: String!
): VoidArguments
| Name | Type | Description |
|---|---|---|
userId |
ID! |
|
oldPassword |
String! |
|
newPassword |
String! |
Returns
Example
mutation ChangeUserPassword($userId: ID!, $oldPassword: String!, $newPassword: String!) {
changeUserPassword(userId: $userId, oldPassword: $oldPassword, newPassword: $newPassword)
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { changeUserPassword(...) { __typename } }"}'