Create Space

Last Updated on : 2023-12-07 03:33:52

Create a space subordinate to the specified parent space.

API address

POST: /v2.0/cloud/space/creation

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
nameStringbodytrueThe name of the specified space.
parent_idLongbodyfalseThe ID of the specified parent space.
descriptionStringbodyfalseThe description of the specified space.

Return parameter

Parameter nameTypeDescription
successBooleanIndicates whether the operation is successful. Valid values:
  • true: The operation succeeded.
  • false: The operation failed.
error_codeStringThe error code.
error_msgStringThe error message.
resultLongThe ID of the specified space.

Request example

POST: /v2.0/cloud/space/creation

Return example

{
    "result": 150000001,
    "success": true
}

Error code

For more information, see error code.