update_function
Modify an existing Cognigy.AI function's name, code, or enabled state. Set dryRun=false to apply changes; by default, it validates.
Instructions
Updates an existing Cognigy.AI Function. Use this to change its name or code, or to enable/disable it. MUTATING: Set dryRun=false to update.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Updated function code | |
| name | No | New name for the function | |
| dryRun | No | If true (default), validates without updating. Set to false to actually update. | |
| functionId | Yes | The function ID to update | |
| isDisabled | No | Disable (true) or enable (false) the function |