User Management
Change a member's system role and custom roles
Changed onChanges an active human member's workspace system role by email. Send member, editor, or admin. Optional customRoleIds replaces that member's custom roles. Omit it to keep them, except when the new role is admin, which clears custom roles and extra permissions. The call is authorized by the workspace API key's USER_MANAGEMENT_API scope and does not run as the person who created the key.
post/user-management/v1/update-user-role
Request
- Base URLhttps://api.langdock.com
- URLhttps://api.langdock.com/user-management/v1/update-user-role
- AuthHTTP bearer
Request body
Example request
{
"email": "user@example.com",
"role": "editor",
"customRoleIds": [
"33333333-3333-4333-8333-333333333333"
]
}Response
Role updated successfully
Example response
{
"status": "success",
"email": "user@example.com",
"role": "editor",
"customRoleIds": [
"33333333-3333-4333-8333-333333333333"
]
}Changes
- info
endpoint added
- info