Add Organization

Last Updated on : 2023-06-15 05:49:28

Add an organization based on the name, parent organization ID, and external organization ID.

API address

POST: /v1.0/iot-03/organizations

Request parameter

Description of body

Parameter name Type IN Required Description
name String true The name of a specified organization, with no more than 40 characters.
parent_id String false The ID of the parent organization.
external_id String false The ID of an external organization.

Return parameter

Parameter name Type Description
result String The organization ID is returned when the operation is successful.

Request example

POST: /v1.0/iot-03/organizations
{ "name": "First-level Organization", "parent_id": "", "external_id": "100001" }

Return example

{ "result": "1405353719310184448", "t": 1623897411598, "success": true }

Error code

For more information, see error code.