Upload file bytes

View as Markdown
Streams the reserved file's bytes to the pending R2 key. Only the reservation owner may call it, and the body length must match the reserved size.

Authentication

AuthorizationBearer

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

Path parameters

projectIdstringRequired
fileIdstringRequired

Request

The raw file bytes (any reserved content type).

Response

The bytes were stored.
okboolean

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error