Set guest visibility for one documentation page
Sets the direct guest-visibility flag for one page. Internal documentation managers only. Organization members cannot call this endpoint, even with manageDocumentation. Hidden pages stay hidden from guests until this flag is true and the project uses Selected pages.
PATCH
/projects/documentation/{id}/guest-visibilityAuthorization
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/jsonguestVisiblebooleanrequiredDirect guest-visibility flag for this page. Folders use the subtree endpoint. Internal callers only.
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 page 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 PATCH "https://leadtime.app/api/public/projects/documentation/550e8400-e29b-41d4-a716-446655440000/guest-visibility" \
-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", {
method: "PATCH",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"guestVisible": true
})
});import requests
response = requests.patch(
"https://leadtime.app/api/public/projects/documentation/550e8400-e29b-41d4-a716-446655440000/guest-visibility",
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
}