Try it free

Cancel a task execution

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Cancel a task execution in Dynatrace with the AutomationEngine API for a workflow execution and task name, with optional admin access.

POSTSaaShttps://{your-environment-id}.apps.dynatrace.com/platform/automation/v1/executions/{executionId}/tasks/{id}/cancel

Overview

You use executionId and id to cancel one task execution by workflow execution and task name. If you set adminAccess, you can access all workflows and executions and also need automation:work. The operation returns no response body.

Authentication

To execute this request, you need a platform token or OAuth access token with automation:workflows:run scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
adminAccessboolean

Allow access to all workflows/executions - additionally requires automation:workflows:admin

queryOptional
executionIdstring-pathRequired
idstring

Task name

pathRequired

Response

Response codes

CodeTypeDescription
200-

No response body

4XXErrorEnvelope-

Response body objects

The ErrorEnvelope object

ElementTypeDescription
errorError-

The Error object

ElementTypeDescription
messagestring-
codeinteger-
detailsErrorDetails-

The ErrorDetails object

ElementTypeDescription
errorCodestring-
errorRefstring-

Response body JSON models

{
"error": {
"message": "string",
"code": 1,
"details": {
"errorCode": "string",
"errorRef": "string"
}
}
}
Related tags
Platform APIDynatrace Platform