Get space page tree
GET/wiki/spaces/:spaceID/pages
History
Version | Changes |
---|---|
v6.2.16 | Added in: v6.2.16 |
v6.12.0 | Detailed distinction between refType in response,add locked property |
Get page tree of the space.
Request
Path Parameters
The space ID
Query Parameters
The team ID
User ID, this parameter can only be passed when calling as an Oauth bot. It is used to perform operations as the specified user
Default false, true: Get space archived page tree, false: Get space normal page tree
Responses
- 200
- 401
- 403
- 404
- 500
Request is successful.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object
pages
object[]
The page ID
The page title
The space ID
The createdTime of page
The updatedTime of page
The parent page ID
The reference type
The reference ID
The sub reference type
Whether the page is archived
Encrypt status, none: not encrypted, encrypted: encrypted, readonly: readonly
Whether the page is editable
Whether the page is locked
The result of this request.
The error code of this request.
Error message for this request.
Error meta data for this request.
{
"data": {
"pages": [
{
"id": "string",
"title": "string",
"spaceID": "string",
"createdTime": 0,
"updatedTime": 0,
"parentID": "string",
"refType": "string",
"refID": "string",
"subRefType": "string",
"isArchived": true,
"encryptStatus": "string",
"canEdit": true,
"locked": true
}
]
},
"result": "string",
"errorCode": "string",
"errorMsg": "string",
"errorData": {}
}
Returned if the authentication credentials are incorrect or missing.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Unauthorized",
"errorMsg": "Access token is invalid"
}
Returns if the scope check fails.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Forbidden",
"errorMsg": "Scope is invalid"
}
Returned if the resource object was not found.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "Not Found"
}
Internal Server Error.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Internal Server Error",
"errorMsg": "Internal Server Error"
}