Connectors
...
Actions
Cancel Machine Action
6 min
description cancels a pending machine action in microsoft defender using the specified 'machineactionid' endpoint url /api/machineactions/{{machineactionid}}/cancel method post inputs path parameters (object) – required machineactionid (string) – required the machine action id json body (object) – required comment (string) comment to associate with the cancellation action output example \[ { "status code" 200, "response headers" { "date" "fri, 07 feb 2025 10 57 23 gmt", "content type" "application/json; odata metadata=minimal; odata streaming=true; charset=utf 8", "transfer encoding" "chunked", "connection" "keep alive", "content encoding" "deflate", "vary" "accept encoding", "mise correlation id" "8d39c870 35e0 4d26 aa40 b15aa1b5c79a", "odata version" "4 0", "strict transport security" "max age=31536000; includesubdomains" }, "reason" "ok", "json body" { "id" "5382f7ea 7557 4ab7 9782 d50480024a4e", "type" "collectinvestigationpackage", "scope" "selective", "requestor" "analyst\@testprd onmicrosoft com", "externalid" "", "requestsource" "", "commands" \[ "putfile" ], "cancellationrequestor" "", "requestorcomment" "test for docs", "cancellationcomment" "", "status" "succeeded", "machineid" "7b1f4967d9728e5aa3c06a9e617a22a4a5a17378", "computerdnsname" "desktop test", "cancellationdatetimeutc" "2019 01 02t14 39 38 2262283z", "creationdatetimeutc" "2019 01 02t14 39 38 2262283z", "lastupdatedatetimeutc" "2019 01 02t14 40 44 6596267z", "title" "", "relatedfileinfo" "" } } ] output parameters status code (number) reason (string) json body (object) id (string) type (string) scope (string) requestor (string) externalid (string) requestsource (string) commands (array) cancellationrequestor (string) requestorcomment (string) cancellationcomment (string) status (string) machineid (string) computerdnsname (string) cancellationdatetimeutc (string) creationdatetimeutc (string) lastupdatedatetimeutc (string) title (string) relatedfileinfo (string) response headers header type date string content type string transfer encoding string connection string content encoding string vary string mise correlation id string odata version string strict transport security string