Add User

Last Updated on : 2023-07-06 08:13:39download

Add a user under a specified organization, and bind the user with the organization.

API address

POST: /v1.0/iot-03/idaas/spaces/{space_id}/organizations/{organization_code}/users

Request parameter

Parameter nameTypeINRequiredDescription
organization_codeStringuritrueThe identifier of a specified organization.
space_idStringuritrueThe ID of a specified space.

Description of body

Parameter nameTypeINRequiredDescription
uidString trueThe user's identifier.

Return parameter

Parameter nameTypeDescription
resultBooleanThe returned result.

Request example

POST: /v1.0/iot-03/idaas/spaces/1400335346549391440/organizations/Acode/users
{
  "uid": "052533b7bf1d41c78505e421daa3f29a"
}

Return example

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

Error code

For more information, see error code.