upsert_transformation
Create or update transformation with custom JavaScript/Python code
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>",
"code": "<code>",
"workspace_id": "<workspace_id>"
},
"name": "upsert_transformation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ID from list_transformations. Omit to create new | |
| tag | No | Release tag for a new transformation: 2-32 letters, numbers, spaces, dots, hyphens or underscores. Default: '1.0.0'. Not used with id | |
| code | Yes | Test with transformation_test_new first | |
| name | Yes | Name that explains the purpose | |
| language | No | Programming language for the transformation. Default: 'javascript' on create. An update cannot change it | |
| description | No | What it does: 2-200 letters, numbers, spaces and - _ . ; , / ( ). An update keeps the saved one when omitted | |
| workspace_id | Yes |