Skip to main content

Attach a new source-code revision (fix_attempt)

POST 

/api/v1/assessments/:assessment_id/revisions

Attach a new fix_attempt CodeRevision to an assessment.

Decoupled "Update source code" path: stores the new source archive, appends a row to the append-only CodeRevision series, and flips Assessment.current_revision_id to point at it. Free; no spawn, no credit spend. Source updates are blocked while verification is active so a run cannot finish against a superseded candidate.

  • Scope required: assessments:update + assessment write access.
  • Rate-limit tier: assessment_create (100/hour/user).
  • Allowed only when the assessment is in completed state.

Request

Responses

Successful Response