Edit ad-hoc task

Cortex XSOAR API

post /inv-playbook/task/edit/{investigationId} Show code example
CURL
curl -X POST \ -H "Authorization: [[apiKey]]" \ -H "Accept: application/json" \ -H "Content-Type: application/json,application/xml" \ "https://hostname:443/inv-playbook/task/edit/{investigationId}" \ -d '{ "addAfter" : true, "scriptArguments" : { "key" : { "keyValue" : [ { "key" : "key" }, { "key" : "key" } ], "complex" : { "transformers" : [ { "args" : { "key" : { "isContext" : true } }, "operator" : "operator" }, { "args" : { "key" : { "isContext" : true } }, "operator" : "operator" } ], "root" : "root", "accessor" : "accessor", "filters" : [ null, null ] }, "simple" : "simple" } }, "separateContext" : true, "addToSeparateBranch" : true, "neighborInvPBTaskId" : "neighborInvPBTaskId", "loop" : { "scriptId" : "scriptId", "wait" : 6, "scriptArguments" : { "key" : { "keyValue" : [ { "key" : "key" }, { "key" : "key" } ], "complex" : { "transformers" : [ { "args" : { "key" : { "isContext" : true } }, "operator" : "operator" }, { "args" : { "key" : { "isContext" : true } }, "operator" : "operator" } ], "root" : "root", "accessor" : "accessor", "filters" : [ null, null ] }, "simple" : "simple" } }, "max" : 1, "forEach" : true, "isCommand" : true, "scriptName" : "scriptName", "exitCondition" : "exitCondition", "builtinCondition" : [ null, null ], "brand" : "brand" }, "playbookId" : "playbookId", "automationScript" : "automationScript", "name" : "name", "description" : "description", "type" : "type", "tags" : [ "tags", "tags" ] }' \ -d ' true true aeiou aeiou aeiou aeiou aeiou UNDEFINED_EXAMPLE_VALUE true aeiou aeiou '
Edit an ad-hoc task in a running playbook