object_retention_set
Set an object's or single version's retention to COMPLIANCE or GOVERNANCE until a specified UTC date, with optional governance bypass and required confirmation.
Instructions
Set an object's (or one version's) retention: mode COMPLIANCE or GOVERNANCE until retain_until (ISO 8601, UTC if no offset). Compliance retention can't be shortened or removed by anyone; bypass_governance=true lets a permitted user shorten governance retention. Needs confirm=true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bucket": "<bucket>",
"key": "<key>",
"mode": "<mode>",
"retain_until": "<retain_until>"
},
"name": "object_retention_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| mode | Yes | ||
| bucket | Yes | ||
| region | No | ||
| confirm | No | ||
| version_id | No | ||
| retain_until | Yes | ||
| bypass_governance | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||