Skip to main content

Upload a source code archive

POST 

/api/v1/files/upload-archive

Upload a source code archive for a draft assessment.

Streams the archive to object storage in 1 MB chunks, computes a SHA-256 digest, and records the archive in the assessment's uploaded_archives list.

Supports .tar.gz, .tgz, .tar.bz2, .tar.xz, .zip, and .7z.

  • Scope required: source:upload_zip.
  • Rate limit: 30 uploads per hour per user (file_upload tier).
  • 400 when path traversal / invalid filename / empty body is detected.
  • 403 if the caller is not the draft's creator.
  • 409 if an archive already exists (only one archive per assessment).
  • 413 when body exceeds max_upload_size_mb.

Request

Responses

Successful Response