Rightech IoT Core icon

Rightech IoT Core

Interact with the Rightech IoT Core API

User → Update a User

AI-generated

Summary

Update an existing user in RIC using provided attributes.

Inputs

  • userId (required) — User identifier (24 alphanumeric characters).
  • fields — Object containing fields to set on the user (e.g., roleId, name, phone, login, password, disabled, webDisabled, temp, messages).

Output shape

a single updated user object

The operation returns the updated user record; errors are propagated as HTTP responses.

Examples

Example 1: Change role and disable login for a service user

userId: '5951113beb39561100fd5bbb', fields: {"roleId": "service-role", "disabled": true, "webDisabled": true}

Example 2: Enable a temporary user with a new phone number

userId: '5951113beb39561100fd5bbc', fields: {"name": "Alice", "phone": "+15551234567", "temp": true, "messages": false}

Links

Discussion