Edit User Share
share_editUpdates an existing Unraid user share's settings through the web UI and verifies the saved config, leaving unspecified options unchanged.
Instructions
⚠ Changes an existing user share's settings through emhttpd (the web UI's own form, via emcmd over SSH) and verifies by re-reading /boot/config/shares/.cfg. Pass at least one of comment, allocator, useCache, cachePool, smbExport, smbSecurity; omitted ones and every other share setting are passed through unchanged. It cannot rename a share, and it refuses a share that has no config yet (use share_create). Requires confirm: true AND acknowledge_risk: true, plus SSH.
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": {
"name": "<name>"
},
"name": "share_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact name of the existing share to edit, from share_list. | |
| comment | No | Free-text comment stored on the share (Unraid's `shareComment` setting). | |
| confirm | No | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. | |
| useCache | No | `no` writes straight to the array; `yes` writes to the pool and the mover moves files to the array; `prefer` keeps files on the pool; `only` uses the pool alone. | |
| allocator | No | Where new files land: `highwater` fills the lowest-numbered disk down to a stepped free-space mark, `fillup` fills it to its minimum free space, `mostfree` picks the emptiest disk. | |
| cachePool | No | Name of an existing cache pool; an unknown name is refused with the valid pools. | |
| smbExport | No | SMB export: `-` = not exported, `e` = exported, `eh` = exported but hidden. | |
| smbSecurity | No | SMB security mode controlling who can reach the share (`shareSecurity`). | |
| acknowledge_risk | No | Set `true` only after the user accepts the risk; needed with `confirm` on every call. |