Updates the specified automation for a specific projecttemplate. If the automation was created from a workflow, only the Enabled flag can be changed.
Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Path parameters
automationIdstringRequiredThe automation ID.
projectTemplateIdstringRequiredThe project template ID.
Request body Required
The requested state and trigger.
application/json
enabledbooleanRequiredWhether the automation is enabled.
triggerobjectRequiredShow 2 properties
typestringRequired1 The type of the trigger.
valuesarray of object or nullOptionalThe values of the trigger.
Show 2 properties
namestringRequired1 The name of the trigger value.
valueanyRequiredThe value of the trigger value.
Responses
200 OK
application/json
idstringOptionalThe id of the automation.
createdBystringOptionalThe id of the user who created the automation.
createdOnstringOptionalThe date the automation was created.
updatedBystringOptionalThe id of the user who updated the automation.
updatedOnstringOptionalThe date the automation was updated.
triggerIdstringOptionalThe id of the trigger which is related to the automation.
triggerobjectOptionalShow 3 properties
updatedOnstringOptionalThe date the trigger was updated.
typestring or nullOptionalThe type of the trigger.
valuesarray of object or nullOptionalThe values of the trigger.
Show 2 properties
namestring or nullOptionalThe name of the trigger value.
valuestring or nullOptionalThe value of the trigger value.
enabledbooleanOptionalWhether the automation is enabled.
statestring or nullOptionalThe state of the automation. See AutomationsService.DAL.Models.AutomationState for the possible values.
createdByProjectTemplatebooleanOptionalWhether the automation was created from an automation template of a project template.
projectIdstring or nullOptionalThe id of the project which is related to the automation.
projectTemplateIdstring or nullOptionalThe id of the project template which is related to the automation.
actionsarray of object or nullOptionalThe actions which is related to the automation.
Show 8 properties
idstringOptionalThe id of the action.
createdBystringOptionalThe id of the user who created the action.
createdOnstringOptionalThe date the action was created.
updatedBystringOptionalThe id of the user who updated the action.
updatedOnstringOptionalThe date the action was updated.
typestring or nullOptionalThe type of the action.
ordernumber or nullOptionalThe order of the action.
valuesarray of object or nullOptionalThe values of the action.
Show 2 properties
namestring or nullOptionalThe name of the action value.
valuestring or nullOptionalThe value of the action value.
workflowIdstring or nullOptionalThe workflow this automation belongs to, if any.
createdByAutomationIdFromWorkflowstring or nullOptionalThe id of the workflow automation that served as the template for this automation.
failedobjectOptionalThe API error response.
Show 6 properties
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.
400 Bad Request
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.