Base route: /api/script-module
This API endpoint creates a new script module in the workspace. Script modules allow you to centralize common functions and variables that can be imported and reused across multiple steps and scripts.
POST /api/script-module
{
"workspaceId": "string",
"name": "string",
"description": "string",
"script": "string",
"scriptLanguage": "string"
}
{
"scriptModuleId": "string"
}