Add Space

Last Updated on : 2023-07-06 09:10:01download

Add a space.

API address

POST: /v1.0/iot-03/idaas/spaces

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
space_groupString trueThe space group.
space_codeString trueThe identifier of a specified space.
remarkString falseThe remarks.
authenticationInteger trueAuthentication extension field. 1. iotuid. 2. projectCode. 3. clientId.
owner_listList trueThe list of space owners.

Return parameter

Parameter nameTypeDescription
resultStringThe operation result.

Request example

POST: /v1.0/iot-03/idaas/spaces
{
  "spaceGroup": "wujunGroup",
  "spaceCode": "wujunCode",
  "authentication": 1,
  "remark": "Remarks",
  "owner": "wujun"
}

Return example

{
    "result": "1400762304747802670",
    "t": 1622802733778,
    "success": true
}

Error code

For more information, see error code.