Edit Organization

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

Modify the name of an organization and the ID of an external organization.

API address

PUT: /v1.0/iot-03/organizations/{org_id}

Request parameter

Parameter name Type IN Required Description
org_id String uri true The organization ID.

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 Boolean Indicates whether the operation is successful.

Request example

PUT: /v1.0/iot-03/organizations/1405353719310184448
{ "name": "First-level Organization 222", "parent_id": "", "external_id": "002222" }

Return example

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

Error code

For more information, see error code.