Workflows
Update a workflow template
This method updates an existing workflow template. A workflow template is a predefined blueprint for a workflow that includes a set of tasks and their dependencies. It serves as a starting point for creating workflows, allowing users to quickly set up and execute common processes without having to define each task from scratch.
The name must be unique among the company's non-deleted workflow templates. Renaming to a name held by another template returns 409; submitting the template's own name is allowed. Names of deleted templates become available for reuse. The comparison is exact and case-sensitive.
put/v1/workflow-templates/{id}
Request
- Base URLhttps://api.emma.ms/external
- AuthHTTP bearer
Path parameters
idinteger required
ID of the workflow template
Request body
Example request
{
"name": "Example Workflow Template",
"description": "This is an example workflow template.",
"contentType": "Shell",
"content": "echo Hello, World!",
"status": "PUBLISHED",
"resourceTypes": [
"COMPUTE"
],
"resourceType": "COMPUTE",
"resourceParams": [
{
"name": "minCpuCores",
"value": "4"
}
],
"tags": [
{
"key": "env",
"value": "dev"
}
],
"contentParams": [
{
"name": "command1",
"defaultValue": "echo Hello, World!",
"mandatory": true,
"description": "Database password used by the deployment script.",
"hasDefaultValue": true,
"vaultVersion": 1
}
],
"isContentValid": true,
"contentExecutionTimeout": 10
}Response
Workflow template updated successfully
Example response
{
"id": 123,
"name": "Sample Workflow Template",
"description": "This is a sample workflow template for demonstration purposes.",
"createdAt": "2026-06-26T21:44:05.345Z",
"createdByName": "Automation User",
"createdById": 123,
"modifiedAt": "2026-07-07T07:38:16.285Z",
"modifiedByName": "Automation User",
"modifiedById": 123,
"status": "PUBLISHED",
"resourceTypes": [
"COMPUTE"
],
"resourceType": "COMPUTE",
"activeVersionId": 123,
"activeVersionName": "v1",
"resourceParams": [
{
"name": "minCpuCores",
"value": "4"
}
],
"tags": [
{
"key": "env",
"value": "dev"
}
],
"contentType": "Shell",
"content": "echo Hello, World!",
"isContentValid": true,
"contentParams": [
{
"name": "command1",
"defaultValue": "echo Hello, World!",
"mandatory": true,
"description": "Database password used by the deployment script.",
"hasDefaultValue": true,
"vaultVersion": 1
}
],
"contentExecutionTimeout": 10
}Changes
No recorded changes to this operation across all 1 revision of this API.