Show or hide a documentation folder and all contents
Sets the selected folder and every descendant folder and page to the same guest-visibility value in one transaction. Internal documentation managers only. Showing a folder never publishes hidden children unless those children are included in this recursive update.
POST
/projects/documentation/{id}/guest-visibility/subtreeAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstring<uuid>requiredProject documentation page or folder UUID. This parameter does not accept a project short identifier.
Request body
requiredapplication/jsonguestVisiblebooleanrequiredSets the selected folder and every descendant folder and page to this value in one transaction.
Responses
200
countnumberNumber of nodes updated by a recursive folder action.
guestVisiblebooleanrequiredidstring<uuid>required401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
404The folder does not exist or is not accessible.
errorstring | objectHTTP error name or a structured HTTP exception response.
Show propertiesHide properties
One of:
string
stringobject
objectmessagestring | string[] | objectrequiredError message, validation message list, or request-field validation message map.
Show propertiesHide properties
One of:
string
stringstring[]
Array of
stringstringobject
objectstatusCodenumberrequiredHTTP status code for this response.
Request
curl -X POST "https://leadtime.app/api/public/projects/documentation/550e8400-e29b-41d4-a716-446655440000/guest-visibility/subtree" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"guestVisible": true
}'const response = await fetch("https://leadtime.app/api/public/projects/documentation/550e8400-e29b-41d4-a716-446655440000/guest-visibility/subtree", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"guestVisible": true
})
});import requests
response = requests.post(
"https://leadtime.app/api/public/projects/documentation/550e8400-e29b-41d4-a716-446655440000/guest-visibility/subtree",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
json={
"guestVisible": True
},
)Response
{
"count": 0,
"guestVisible": true,
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions
{
"error": "string",
"message": "string",
"statusCode": 0
}