Add Organization (& User)

Last Updated on : 2023-07-06 08:24:26download

This is an aggregated interface. You can add an organization and add the users whose type is an organization.

API address

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

Request parameter

Parameter nameTypeINRequiredDescription
space_idStringuritrueThe ID of a specified space.

Description of body

Parameter nameTypeINRequiredDescription
codeString trueThe identifier of a specified organization.
nameString trueThe name of a specified organization.
parent_codeString falseThe identifier of a specified parent organization.
remarkString falseThe remarks of a specified organization.
owner_uidString trueThe user ID of the organization owner.

Return parameter

Parameter nameTypeDescription
resultBooleanThe returned result.

Request example

POST: /v1.0/iot-03/idaas-prod/spaces/1400335346549391440/organizations
{
  "name": "name",
  "owner_uid": "1400335346599528750",
  "code": "1400335346598629930",
  "remark": "remark"
}

Return example

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

Error code

For more information, see error code.