Query Parent-Child Relationship

Last Updated on : 2024-09-10 01:49:16

Query whether two spaces have a parent-child relationship.

API address

GET: /v2.0/cloud/space/relation

Request parameter

Parameter nameTypeINRequiredDescription
parent_idLongquerytrueThe ID of the specified parent space.
child_idLongquerytrueThe ID of the specified subspace (child space).

Return parameter

Parameter nameTypeDescription
successBooleanIndicates whether the operation is successful. Valid values:
  • true: The operation succeeded.
  • false: The operation failed.
error_codeStringFor more information, see the error codes.
error_msgStringThe message that is returned if the request fails. It is empty if the request is successful.
resultBooleanThe returned result.

Request example

GET: /v2.0/cloud/space/relation?parent_id=15000001&child_id=15000002

Return example

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

Error code

For more information, see error code.

Limits on API Request Frequency

For more information, see Limits on API Request Frequency.