Home / Resources / API Reference

Step Template

Base route: /api/step-template

Create step template

This API endpoint creates a reusable step template in the workspace. Step templates define custom scripts and properties that can be shared across multiple deployment processes.

Request

Parameters
workspaceId
string
required
The identifier of the workspace.
name
string
required
The unique name for the template.
script
string
required
The source code of the script to execute.
scriptLanguage
string
required
The language of the script (e.g., PowerShell, Bash).
Request body

POST /api/step-template {   "workspaceId": "string",   "name": "string",   "description": "string",   "supportedRunModes": ["string"],   "script": "string",   "scriptLanguage": "string",   "propertiesRaw": "string" }

Response

Parameters
stepTemplateId
string
The unique ID of the newly created template.
Response body

{   "stepTemplateId": "string" }