Inputs

Routes in this group. Authentication, scope and rate limit errors apply to every route and are on the errors page.

All routes

POST/projects/{slug}/inputs

Upload an input ZIP: reference art and sources the manifest points at.

Scope
inputs:write
Rate bucket
upload, 8 an hour per key
POST /api/pipeline/v1/projects/{slug}/inputs parameters
NameInTypeRequiredNotes
slugpathstringYes

Request. multipart/form-data with exactly one field, file, holding the ZIP. Needs inputs:write. An optional _inputs.json inside the ZIP declares rights, license, source and attribution, as defaults and per file. The same ZIP uploaded twice returns the same input set.

Returns. inputSetId, created, sha256, bytes, entries, expiresAt and files (path, sha256, bytes, metadata). Pass inputSetId to lint, quote and submit.

Errors specific to this route. 422 zip_file_required, 413 request_too_large, 422 invalid_zip, 422 zip_too_large, 422 too_many_entries, 422 entry_too_large, 422 expanded_zip_too_large, 422 unsafe_entry_path, 422 duplicate_entry, 422 invalid_png_header, 422 png_dimensions_exceeded, 422 invalid_inputs_metadata, 422 invalid_input_rights, 404 project_not_found. Authentication, scope and rate limit errors apply to every route.