{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Update the maintenance configuration for a specific table. 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."},"namespace":{"type":"string","examples":["my_namespace%1Fsub_namespace"],"description":"The namespace identifier (use %1F as separator for nested namespaces)."},"table_name":{"type":"string","examples":["my_table"],"description":"The table name."}},"required":["account_id","bucket_name","namespace","table_name"],"additionalProperties":false},"body":{"$ref":"#/definitions/r2-data-catalog_table-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_table-maintenance-update-request":{"description":"Contains request to update table maintenance configuration.","type":"object","properties":{"compaction":{"$ref":"#/definitions/r2-data-catalog_table-compaction-update-params"},"snapshot_expiration":{"$ref":"#/definitions/r2-data-catalog_snapshot-expiration-update-params"}}},"r2-data-catalog_table-compaction-update-params":{"description":"Updates table compaction configuration; all fields are 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 table maintenance configuration","id":"cloudflare.basin-update-table-maintenance-config","example":{"path":{"account_id":"0123456789abcdef0123456789abcdef","bucket_name":"my-data-bucket","namespace":"example","table_name":"my_table"},"body":{}},"maxRequests":1,"summary":false}}