Add Organization

Last Updated on : 2023-07-06 08:23:52download

Enter the organization information such as the organization ID, name, and owner to create an organization.

API address

POST: /v1.0/iot-03/idaas/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/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.