// Script Modules

Create a script module

Add a new script module to a workspace.

POST/api/script-module

Description

Creates a script module containing PowerShell (or other supported) functions that projects can import into steps.

Parameters

NameInTypeRequiredDescription
workspaceId body string yes ID of the workspace.
name body string yes Module name.
description body string no Optional description.
script body string yes Module script body.
scriptLanguage body string no powershell (default), etc.

Errors

StatusMeaning
400 Invalid workspaceId or validation failure.
401 Missing or invalid Basic auth credentials, or the service account lacks the required role.