Upload resource content
Resources
Upload resource content
Streams the request body into R2 for a pending resource. Authorized by the signed capability URL (HMAC in the query string), not bearer auth.
PUT
Upload resource content
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Resource ID.
Required range:
x >= 1Query Parameters
Capability scope: r (read) or w (write).
Available options:
r, w Expiry as a Unix timestamp (seconds).
HMAC signature for the capability.
Body
application/octet-stream
Raw file bytes to store in R2.
Response
The upload was stored.
Response payload.