Creates a new automation for a given projecttemplate.

Creates a new automation of the projecttemplate with the specified id. To create the the automation the user needs to have 'write' permissions of the feature 'project-manage-config' globally. <Check title="Required Permissions">The user must be an admin or have `project-manage-config:write` permissions.</Check>

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

projectTemplateIdstringRequiredformat: "uuid"

Request

This endpoint expects an object.
typestringRequired>=1 character
The type of the trigger.
valueslist of objects or nullOptional
The values of the trigger.

Response

OK
idstring or nullformat: "uuid"
The id of the automation.
createdBystring or nullformat: "uuid"
The id of the user who created the automation.
createdOnstring or nullformat: "date-time"
The date the automation was created.
updatedBystring or nullformat: "uuid"
The id of the user who updated the automation.
updatedOnstring or nullformat: "date-time"
The date the automation was updated.
triggerIdstring or nullformat: "uuid"
The id of the trigger which is related to the automation.
triggerobject or null
enabledboolean or null
Whether the automation is enabled.
statestring or null
The state of the automation. See AutomationsService.DAL.Models.AutomationState for the possible values.
createdByProjectTemplateboolean or null
Whether the automation was created from an automation template of a project template.
projectIdstring or nullformat: "uuid"
The id of the project which is related to the automation.
projectTemplateIdstring or nullformat: "uuid"
The id of the project template which is related to the automation.
actionslist of objects or null
The actions which is related to the automation.
failedobject or null