R2 Bucket
Upload Object to R2 Bucket
Changed onUpload an object to an R2 bucket.
put/r2/buckets/{bucket_name}/objects/{object_key}
Request
- Base URL: /cdn-cgi/local/explorer/api (relative, and the document was published on a file host, not at the API’s origin)
- URL: /cdn-cgi/local/explorer/api/r2/buckets/{bucket_name}/objects/{object_key}
- Auth: none declared
Path parameters
bucket_namestring required
object_keystring required
Headers
content-typestring
Content type of the object
cf-r2-custom-metadatastring
JSON-encoded custom metadata
Response
Put object response.
Example response
{
"errors": [],
"messages": [],
"success": true
}Changes
- ○
endpoint added
- ○