v1

latestOpenAPI 3.1.02026-08-066984441.1 MB
projectTemplateAutomations

Creates a new automation for a given project template.

Creates a new automation of the project template with the specified id.

<Check title="Required Permissions" icon="key">The user must be an admin or have project-manage-config:write permissions.</Check>

post/projecttemplates/{projectTemplateId}/automations

Path parameters

projectTemplateIdstring uuid required

The id of the project template.

Headers

Authorizationstring required

Bearer authentication

Request body

typestring required

The type of the trigger.

Response

OK

idstring uuid

The id of the automation.

createdBystring uuid

The id of the user who created the automation.

createdOnstring date-time

The date the automation was created.

updatedBystring uuid

The id of the user who updated the automation.

updatedOnstring date-time

The date the automation was updated.

triggerIdstring uuid

The id of the trigger which is related to the automation.

enabledboolean

Whether the automation is enabled.

statestring nullable

The state of the automation. See AutomationsService.DAL.Models.AutomationState for the possible values.

createdByProjectTemplateboolean

Whether the automation was created from an automation template of a project template.

projectIdstring uuid nullable

The id of the project which is related to the automation.

projectTemplateIdstring uuid nullable

The id of the project template which is related to the automation.

workflowIdstring uuid nullable

The workflow this automation belongs to, if any.

createdByAutomationIdFromWorkflowstring uuid nullable

The id of the workflow automation that served as the template for this automation.