Modify User Information

Last Updated on : 2023-06-21 07:12:54download

Modify all or part of the user’s basic information by user ID.

API address

PUT: /v1.0/iot-03/users/{uid}

Request parameter

Parameter name Type IN Required Description
uid String uri true The user ID.

Description of body

Parameter name Type IN Required Description
external_id String false The external ID, with no more than 40 characters.
user_account String false The login account or username, with no more than 20 characters.
password String false The password, with no more than 100 characters.
name String false The name, with no more than 10 characters.
mobile String false The mobile phone number.
email String false The email address.
gender String false The gender. Valid values: 1: male. 2: female.
country_code String false The country code.
start_time Long false The returned 13-bit timestamp of the time when the system is logged in to.
end_time Long false The returned 13-bit timestamp of the time when the system is logged out of.
user_no String false The student number or work number, with no more than 20 characters.

Return parameter

Parameter name Type Description
result Boolean The returned result.

Request example

PUT: /v1.0/iot-03/users/bsh162149200976****
{ "email": "123****@tuya.com", "end_time": 1621183690538, "external_id": "32221****", "gender": "1", "id": "bsh1621492009764****", "mobile": "1663323****", "name": "jinyunt", "start_time": 1621183630538, "status": 1, "user_account": "1111823****", "user_no": "tuya1****" }

Return example

{ "result": true, "t": 1623772488275, "success": true }

Error code

For more information, see error code.