Create an R2 bucket from a name in the URL path
One step with Cloudflare. We can help you get access.
Get something done
Create an R2 bucket from a name in the URL path
with Cloudflare
Use Cloudflare: its Cloudflare R2 Bucket API lets you create an R2 bucket from a name in the URL path in a single step (PUT /accounts/{account_id}/r2/buckets/{bucket_name}). capabilities.work can help you get signed up and connected.
- Is there a way to create an R2 bucket with a PUT request where the name goes in the path?
- Can I set the storage class through a header when creating an R2 bucket by its path name?
- Can I pin a new R2 bucket to a jurisdiction using a header?
Say it to your AI assistant
- PUT a new bucket named {bucket} into account {account} using the path-based create endpoint.
- Using the path-name create call, make bucket {bucket} in account {account} with the cf-r2-storage-class header set to {storage}.
- Using the path-name create call, make bucket {bucket} in account {account} under jurisdiction {jurisdiction}.
For your developer
PUT /accounts/{account_id}/r2/buckets/{bucket_name} in Cloudflare R2 Bucket API. Full spec on APIs.io.