object_acl_set
Replace an object's ACL or a specific version's ACL with a canned ACL or explicit grants, then return the updated ACL; requires confirm=true.
Instructions
Replace an object's (or one version's) ACL with a canned_acl or explicit grants, as for bucket_acl_set, and return the new ACL. Trial accounts and accounts created after 2023-03-13 can't make objects public. 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>"
},
"name": "object_acl_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| bucket | Yes | ||
| grants | No | ||
| region | No | ||
| confirm | No | ||
| canned_acl | No | ||
| version_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||