Update Organization

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

Update the organization information. Before the update, check whether the current operator is allowed to operate the organization information.

API address

PUT: /v1.0/iot-03/idaas/spaces/{space_id}/organizations/{code}

Request parameter

Parameter nameTypeINRequiredDescription
uidStringquerytrueThe identifier of the current user.
codeStringuritrueThe identifier of a specified organization.
space_idStringuritrueThe ID of a specified space.

Description of body

Parameter nameTypeINRequiredDescription
codeString trueThe identifier of a specified organization.
nameString trueThe identifier of a specified organization.
parent_codeString falseThe identifier of a specified parent organization.
remarkString falseThe remarks of a specified organization.

Return parameter

Parameter nameTypeDescription
resultBooleanThe returned result.

Request example

PUT: /v1.0/iot-03/idaas/spaces/1400335346549391440/organizations/Acode?uid=ownerUid
{
  "name": "name",
  "code": "1400335346598629930",
  "remark": "remark"
}

Return example

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

Error code

For more information, see error code.