Delete a Docs page and its attachments
post
https://api.expiryedge.com/v1/deleteKnowledgeDocadmin, or an editor who created the page (with `cascade`, every sub-page too)60/min
Request
curl -X POST 'https://api.expiryedge.com/v1/deleteKnowledgeDoc' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "kd_7Hn2qLx"
}'Response
{
"deleted": true,
"id": "kd_7Hn2qLx",
"deleted_ids": [
"kd_7Hn2qLx"
]
}Deletes the page's attachments (records and stored files) and then the page. A page with sub-pages returns 409
HAS_CHILDREN unless cascade: true, which deletes the sub-pages too (deepest first).
idstringrequiredcascadebooleanAlso delete every sub-page (and their attachments).Defaultfalse
200
Deleted.
deletedbooleanrequiredAllowedtrueidstringrequireddeleted_idsarray of stringrequiredEvery page removed, sub-pages first.
400 | The request is missing required fields or contains invalid values. |
401 | Missing, expired or invalid bearer token. |
403 | Authenticated, but your role or organization does not allow this action. |
404 | The record does not exist or is not in your organization. |
405 | The endpoint does not accept this HTTP method. |
409 | The page has sub-pages. Delete or move them first, or pass cascade true. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
500 | Unexpected server error. Retry later; quote requestId to support. |
