viya_files_rename
Rename a file or folder in its SAS Viya folder, with version and modified-time checks to prevent overwriting concurrent changes.
Instructions
Rename a file or folder on SAS Viya ("content" or "server", the active connection) in its folder.
Sends the item's version (ETag) as If-Match: a change meanwhile answers ``conflict``, as does a file whose
modified time differs from ``expected_modified``. Top-level folders, My Folder, the SAS server's home and
lockdown folders (and the folders above them) are refused. Open SQL Editor tabs follow the rename.
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": {
"location": "<location>",
"path": "<path>",
"new_name": "<new_name>"
},
"name": "viya_files_rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| location | Yes | ||
| new_name | Yes | ||
| expected_modified | No |