b2_update_file_retention
Update the retention policy on a B2 file by setting governance or compliance modes with a retain-until timestamp, or clear the policy in governance mode. Requires writeFileRetentions capability.
Instructions
Set or modify the retention policy on a specific file version in B2. Supports governance and compliance retention modes. In compliance mode, the retain-until date can only be extended. Requires the writeFileRetentions capability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | The B2 file ID of the file to update. | |
| confirm | No | Fallback confirmation for this irreversible/protection-removing operation when the effective server destructive policy is 'confirm' and MCP elicitation cannot run. | |
| fileName | Yes | The name of the file (required by the B2 API alongside fileId). | |
| fileRetention | Yes | Retention policy to apply, or { mode: null, retainUntilTimestamp: null } to clear. This is the flat shape B2's write API expects — do NOT include the read-only isClientAuthorizedToRead/value wrapper that b2_get_file_info returns. | |
| bypassGovernance | No | If true, allows overriding governance-mode retention. Requires bypassGovernance capability. |