{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Changes the default storage class for newly uploaded objects in an existing R2 bucket. Existing objects retain their storage class, and individual uploads can override the bucket default.","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."},"cf-r2-storage-class":{"allOf":[{"$ref":"#/definitions/r2_storage_class"}]}},"required":["cf-r2-storage-class"],"additionalProperties":false}},"required":["path","headers"],"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_storage_class":{"description":"Storage class for newly uploaded objects, unless specified otherwise.","type":"string","default":"Standard","enum":["Standard","InfrequentAccess"]}}},"name":"Patch Bucket","id":"cloudflare.r2-patch-bucket","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353","bucket_name":"example-bucket"},"headers":{"cf-r2-storage-class":"Standard"}},"maxRequests":1,"summary":false}}