pages-cleanup

Operations of the Knowledge Base API. Paths are relative to your deployment's API host.

DELETE /api/knowledge-base-api/pages/cleanup

Delete pages created during a specific pipeline run and phase (used for pipeline stop cleanup)

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
pipelineRunIdquerystringyesPipeline run ID
pipelineStageKeyquerystringnoPipeline stage key to scope the cleanup
StatusDescriptionBody
400application/problem+json ProblemDetailsDto
401application/problem+json ProblemDetailsDto
403application/problem+json ProblemDetailsDto
404application/problem+json ProblemDetailsDto
409application/problem+json ProblemDetailsDto
422application/problem+json ProblemDetailsDto
500application/problem+json ProblemDetailsDto

PATCH /api/knowledge-base-api/pages/detach

Detach pages from a pipeline run (set pipelineRunId=null, status=proposed). Used by undo with retainDocuments=true.

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
pipelineRunIdquerystringyesPipeline run ID
StatusDescriptionBody
400application/problem+json ProblemDetailsDto
401application/problem+json ProblemDetailsDto
403application/problem+json ProblemDetailsDto
404application/problem+json ProblemDetailsDto
409application/problem+json ProblemDetailsDto
422application/problem+json ProblemDetailsDto
500application/problem+json ProblemDetailsDto

POST /api/knowledge-base-api/pages/{id}/revert

Revert a page to a specific historical version (creates new version for audit trail)

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
400application/problem+json ProblemDetailsDto
401application/problem+json ProblemDetailsDto
403application/problem+json ProblemDetailsDto
404application/problem+json ProblemDetailsDto
409application/problem+json ProblemDetailsDto
422application/problem+json ProblemDetailsDto
500application/problem+json ProblemDetailsDto