Update a user
PATCH/v1/users/:id
Updates a user. Only the fields sent are changed; email and status can't be changed.
Request
Responses
- 200
- 401
- 403
- 404
- 422
User updated
Missing or invalid bearer token.
The public API is not enabled for this account (err_feature_not_enabled), the acting user is not allowed to manage users (requires the users:manage permission), or the API key lacks the users:write scope (err_insufficient_scope).
User not found (err_user_not_found).
Validation failed. Error codes:
err_time_zone_invalid-time_zoneis not a valid IANA timezone nameerr_role_not_found-role_idis not a role in the accounterr_cannot_change_self- you tried to change your own roleerr_cannot_change_super_admin- the user is a super admin and you are noterr_reporting_manager_not_found-reporting_manager_idis not a user in the accounterr_reporting_manager_inactive-reporting_manager_idis not an active or pending usererr_cycle_detected-reporting_manager_idreports, directly or indirectly, to this usererr_department_not_found-department_idor ascoped_department_idsentry is not a department in the accounterr_office_not_found-office_idor ascoped_office_idsentry is not an office in the accounterr_scope_required-role_idis a scoped role and neitherscoped_department_idsnorscoped_office_idswas sent