Update Code File
update_code_fileChange a code file's working revision, including its code, name, description, or signature types, in SAS Viya. Lock the revision first to preserve the current state before making changes.
Instructions
Change a code file's working revision: its code, name, description or signature types.
New code makes Viya read the signature again. Lock a revision first (lock_decisioning_asset_revision) to keep the current state.
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": {
"code_file_id": "<code_file_id>"
},
"name": "update_code_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | New code. | |
| name | No | New name. | |
| folder | No | Only used for a code file that is in no folder yet. | |
| signature | No | Types and descriptions (needed for Python, see create_code_file). | |
| description | No | New description. | |
| code_file_id | Yes | The code file ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||