{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Enables or disables public access to the R2 bucket through its managed r2.dev domain. Custom domain access is unaffected. The r2.dev domain is rate-limited and intended for development use.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/r2_account_identifier"},"bucket_name":{"$ref":"#/definitions/r2_bucket_name"}},"required":["account_id","bucket_name"],"additionalProperties":false},"headers":{"type":"object","properties":{"cf-r2-jurisdiction":{"type":"string","default":"default","enum":["default","eu","us","fedramp","fedramp-high"],"description":"Jurisdiction where objects in this bucket are guaranteed to be stored."}},"required":[],"additionalProperties":false},"body":{"$ref":"#/definitions/r2_edit_managed_domain_request"}},"required":["path","body"],"additionalProperties":false,"definitions":{"r2_account_identifier":{"description":"Cloudflare account ID that owns the R2 resource.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"r2_bucket_name":{"description":"Name of the bucket.","type":"string","maxLength":64,"minLength":3,"pattern":"^[a-z0-9][a-z0-9-]*[a-z0-9]","examples":["example-bucket"]},"r2_edit_managed_domain_request":{"type":"object","properties":{"enabled":{"description":"Whether to enable public bucket access at the r2.dev domain.","type":"boolean"}},"required":["enabled"],"examples":[{"enabled":true}]}}},"name":"Update r2.dev Domain of Bucket","id":"cloudflare.r2-put-bucket-public-policy","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353","bucket_name":"example-bucket"},"body":{"enabled":true}},"maxRequests":1,"summary":false}}