Re-run document extraction
POST/projects/:projectPid/documents/:sourcePid/regenerate
Re-reads the stored original blob, re-parses, and idempotently replaces the artifact and chunks by dispatching ExtractDocumentArtifactsWorkflow. Returns sourcePid and workflowPid so the caller can resubscribe to lifecycle events. Returns 409 when the source is already processing or still has an active (non-archived) artifact. Requires project access; returns 404 when the source or project is unknown or not visible.
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 422
- 503
Success
air/UnauthorizedError
air/ForbiddenError
NotFound
Conflict
air/SchemaValidationError
air/AuthUnavailableError