Inject one or more files into the workdir mid-run

Each file is persisted as an artifact (source of truth) and, if the

POST /api/v1/runs/{runId}/files

Each file is persisted as an artifact (source of truth) and, if the container is live, immediately written to the workdir via a file:inject WebSocket frame.

The response reports which paths were persisted and whether the write was also liveDelivered to the running container.

Authentication

Requires a project API key — see Authentication.

Parameters

NameInTypeRequiredDescription
runIdpathstringrequiredUUID of the run.

Request body

FieldTypeRequiredDescription
filesarrayrequired

Responses

StatusDescription
202Files accepted.
400Request body or query parameters failed validation.
404Resource not found or not accessible to this project.

Tag: Interactions