Edit ad-hoc task

Cortex XSOAR 6 API

post /inv-playbook/task/edit/{investigationId}

Edit an ad-hoc task in a running playbook

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 true true 123456789 UNDEFINED_EXAMPLE_VALUE aeiou aeiou 123456789 aeiou aeiou aeiou UNDEFINED_EXAMPLE_VALUE true aeiou aeiou '
Authentication: api_key Api Key "Authorization"
Path parameters
investigationId
required
String
investigation ID
Example: investigationId_example
Request
Body
optional
addAfter
optional
Boolean
addToSeparateBranch
optional
Boolean
automationScript
optional
String
description
optional
String
loop
optional
name
optional
String
neighborInvPBTaskId
optional
String
playbookId
optional
String
scriptArguments
optional
Map
separateContext
optional
Boolean
tags
optional
Array of strings
type
optional
String
TaskType is the Task in the playbook context as a node
Responses

InvestigationPlaybook

Body
InvestigationPlaybook