jobs

Rollback Job

Rollback a completed/failed indexing job — removes all indexed data (RDS + Turbopuffer).

Behavior:

  • If job is RUNNING: returns 409 Conflict — cancel it first
  • If job is in terminal state (SUCCEEDED/FAILED/ABORTED/TIMED_OUT): deletes all data
  • If job not found: returns 404

Returns:

  • job_id: The job identifier
  • status: "rolled_back" or "error"
  • files_removed: List of file names that were removed
  • rolled_back_at: Timestamp of rollback

Authentication: Requires Bearer token in Authorization header

patch/v2/jobs/{job_id}/rollback

Path parameters

job_idstring required

Headers

authorizationstring nullable

Response

Successful Response

files_removedstring[] nullable
job_idstring required
messagestring nullable
rolled_back_atstring nullable
statusstring required

Changes