Confirm a file upload

View as Markdown

Transfers the pending upload to the live pool (idempotent): copies the bytes to the final key, writes the ProjectFile row, moves the held quota, and — for a per-task upload — registers the file with the run. Returns the confirmed file (with registeredToTask for per-task uploads).

Authentication

AuthorizationBearer

WorkOS session JWT or an organization API key, sent as Authorization: Bearer <token>.

Path parameters

projectIdstringRequired
fileIdstringRequired

Response

The confirmed file (with registeredToTask for per-task uploads).

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
503
Service Unavailable Error