Rollback Job

Rollback a completed or failed indexing job — removes all indexed files and their associated data. ## Behavior - **Running job**: Returns `409 Conflict` — cancel the job first using `DELETE /v2/jobs/{job_id}` - **Completed/Failed/Cancelled job**: Deletes all files indexed by this job and returns the list of files removed - **Not found**: Returns `404` ## Use Cases - Undo a completed indexing job that indexed incorrect data - Clean up partial data from a failed job - Remove test data after development/staging indexing runs

Authentication

AuthorizationBearer
Bearer token authentication using API key

Path parameters

job_idstringRequired
The job ID to rollback

Headers

X-Organization-IDstringRequired

Response

Rollback completed successfully
job_idstring
The job ID that was rolled back
statusstring

Rollback status: rolled_back or error

messagestring or null

Human-readable summary of the rollback

files_removedlist of strings or null
List of file names that were removed by the rollback
rolled_back_atstring or null
RFC3339 timestamp of when the rollback completed

Errors