Preview project documentation deletion
Returns active page and folder counts for the node subtree that a confirmed delete will remove.
GET
/projects/documentation/{id}/delete-previewAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:reador
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstring<uuid>requiredProject documentation page or folder UUID. This parameter does not accept a project short identifier.
Responses
200
folderCountnumberrequiredpageCountnumberrequiredpreviewTokenstringrequiredOpaque token for the exact active subtree. Pass it unchanged to the delete operation.
400The documentation node identifier is not a valid UUID.
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.
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
404The node 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 GET "https://leadtime.app/api/public/projects/documentation/550e8400-e29b-41d4-a716-446655440000/delete-preview" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/projects/documentation/550e8400-e29b-41d4-a716-446655440000/delete-preview", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.get(
"https://leadtime.app/api/public/projects/documentation/550e8400-e29b-41d4-a716-446655440000/delete-preview",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"folderCount": 0,
"pageCount": 0,
"previewToken": "string"
}{
"error": "string",
"message": "string",
"statusCode": 0
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions
{
"error": "string",
"message": "string",
"statusCode": 0
}