torrents.files.rename
Rename a file in a torrent (on disk).
Request
{
"info_hash": ["abcdef0123456789abcd", null],
// Optional session ID. If not specified, will look in the session
// named 'default'.
"session_id": 7,
"file_index": 1,
"file_path": "ubuntu-24.04.1/SHA256SUMS.txt"
}
Response
null
Errors
| Code | Reason |
|---|---|
| -5 | Torrent has no metadata |
| -6 | File index out of range |
| -32602 | file_path must not be empty |