v1

latestOpenAPI 3.1.02026-08-066984441.1 MB
projectTemplateAutomations

Updates the automation with the specified id for a given projecttemplate.

Updates the specified automation for a specific projecttemplate. If the automation was created from a workflow, only the Enabled flag can be changed.

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

put/projecttemplates/{projectTemplateId}/automations/{automationId}

Path parameters

automationIdstring uuid required
projectTemplateIdstring uuid required

Headers

Authorizationstring required

Bearer authentication

Request body

enabledboolean required

Whether the automation is enabled.

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.