Skip to main content

Code and runs

RouteWhat it does
PUT /versions/:id/codeWhere a code draft's generator is: { repoUrl, ref, path }
POST /versions/:id/code/syncFetch it: resolves the ref to a commit, stores the code and the manifest
POST /versions/:id/runsRun it: { params?, force? }. The same parameters on the same commit return the existing run, unless force
GET /versions/:id/runsThe runs of a draft or version
GET /runs/:idA run with its job and the documents it made

Generated documents carry where they came from in GET /documents/:id: the generator, its version, the run and its parameters.