Enable Organization

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

This is an aggregated interface. Enable an organization, and meanwhile, the organization owner account and user account will be enabled too.

API address

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

Request parameter

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

Return parameter

Parameter nameTypeDescription
resultBooleanThe returned result.

Request example

POST: /v1.0/iot-03/idaas-prod/spaces/1400335346549391440/organizations/actions/enable?code=Acode&uid=ownerUid

Return example

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

Error code

For more information, see error code.