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.
Required Permissions
The user must be an admin or haveproject-manage-config:write
permissions.Path parameters
projectTemplateId
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
type
The type of the trigger.
values
The values of the trigger.
Response
OK
id
The id of the automation.
createdBy
The id of the user who created the automation.
createdOn
The date the automation was created.
updatedBy
The id of the user who updated the automation.
updatedOn
The date the automation was updated.
triggerId
The id of the trigger which is related to the automation.
trigger
enabled
Whether the automation is enabled.
state
The state of the automation.
See AutomationsService.DAL.Models.AutomationState for the possible values.
createdByProjectTemplate
Whether the automation was created from an automation template of a project template.
projectId
The id of the project which is related to the automation.
projectTemplateId
The id of the project template which is related to the automation.
actions
The actions which is related to the automation.
failed