{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Update the maintenance configuration for a catalog. This allows you to\nenable or disable compaction and adjust target file sizes for optimization.\n","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/r2-data-catalog_account-id","description":"Identifies the account."},"bucket_name":{"$ref":"#/definitions/r2-data-catalog_bucket-name","description":"Specifies the R2 bucket name."}},"required":["account_id","bucket_name"],"additionalProperties":false},"body":{"$ref":"#/definitions/r2-data-catalog_catalog-maintenance-update-request","examples":[{"compaction":{"state":"enabled","target_size_mb":"256"},"snapshot_expiration":{"max_snapshot_age":"14d","min_snapshots_to_keep":5,"state":"enabled"}}]}},"required":["path","body"],"additionalProperties":false,"definitions":{"r2-data-catalog_account-id":{"description":"Use this to identify the account.","type":"string","pattern":"^[a-fA-F0-9]{32}$","examples":["0123456789abcdef0123456789abcdef"]},"r2-data-catalog_bucket-name":{"description":"Specifies the R2 bucket name.","type":"string","maxLength":63,"minLength":3,"pattern":"^[a-z0-9]([a-z0-9\\-]*[a-z0-9])?$","examples":["my-data-bucket"]},"r2-data-catalog_catalog-maintenance-update-request":{"description":"Contains request to update catalog maintenance configuration.","allOf":[{"$ref":"#/definitions/r2-data-catalog_maintenance-update-params"}]},"r2-data-catalog_maintenance-update-params":{"description":"Contains maintenance update parameters.","type":"object","properties":{"compaction":{"$ref":"#/definitions/r2-data-catalog_compaction-update-params"},"snapshot_expiration":{"$ref":"#/definitions/r2-data-catalog_snapshot-expiration-update-params"}}},"r2-data-catalog_compaction-update-params":{"description":"Updates compaction configuration (all fields optional).","type":"object","properties":{"state":{"$ref":"#/definitions/r2-data-catalog_catalog-maintenance-state"},"target_size_mb":{"$ref":"#/definitions/r2-data-catalog_catalog-target-file-size"}}},"r2-data-catalog_snapshot-expiration-update-params":{"description":"Updates snapshot expiration configuration (all fields optional).","type":"object","properties":{"max_snapshot_age":{"description":"Updates the maximum age for snapshots optionally.","type":"string","pattern":"^\\d+(d|h|m|s)$"},"min_snapshots_to_keep":{"description":"Updates the minimum number of snapshots to retain optionally.","type":"integer","minimum":1},"state":{"$ref":"#/definitions/r2-data-catalog_catalog-maintenance-state"}}},"r2-data-catalog_catalog-maintenance-state":{"description":"Specifies the state of maintenance operations.","type":"string","enum":["enabled","disabled"],"examples":["enabled"]},"r2-data-catalog_catalog-target-file-size":{"description":"Sets the target file size for compaction in megabytes. Defaults to \"128\".","type":"string","enum":["64","128","256","512"],"examples":["128"]}}},"name":"Update catalog maintenance configuration","id":"cloudflare.basin-update-maintenance-config","example":{"path":{"account_id":"0123456789abcdef0123456789abcdef","bucket_name":"my-data-bucket"},"body":{}},"maxRequests":1,"summary":false}}