admin-users
Change User Role
Change a user's role, auto-transferring owned records if necessary.
When the new role belongs to different record type groups than the current role, records owned by the user in the old groups are automatically transferred to the user's manager (parent role in hierarchy).
If the user owns records and no manager exists in the hierarchy, the request is rejected with a 409 status and ROLE_CHANGE_BLOCKED error code.
post/api/v1/admin/users/{user_id}/change-role
Request
- Base URLhttps://api.ninjavan.co (the document declares no server; this is the origin it was published from)
- URLhttps://api.ninjavan.co/api/v1/admin/users/{user_id}/change-role
- Authnone declared
Path parameters
user_idinteger required
Headers
authorizationstring nullable
X-API-Keystring nullable
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 10 revisions of this API.