Update tasks

Update tasks

You may also fully replace a container's tasks by omitting the index and providing a complete list of task IDs. This replacement method is only supported on the worker container type.

curl -X PUT "https://onfleet.com/api/v2/containers/workers/2Fwp6wS5wLNjDn36r1LJPscA" \
     -u "cd3b3de84cc1ee040bf06512d233719c:" \
     -d '{"tasks":["b3F~z2sU7H*auNKkM6LoiXzP","1ry863mrjoQaqMNxnrD5YvxH","l33lg5WLrja3Tft*MO383Gub"]}'
onfleet.workers.insertTask(id="2Fwp6wS5wLNjDn36r1LJPscA", body={"tasks":["b3F~z2sU7H*auNKkM6LoiXzP","1ry863mrjoQaqMNxnrD5YvxH","l33lg5WLrja3Tft*MO383Gub"]})
onfleet.workers.insertTask("2Fwp6wS5wLNjDn36r1LJPscA", {"tasks":["b3F~z2sU7H*auNKkM6LoiXzP","1ry863mrjoQaqMNxnrD5YvxH","l33lg5WLrja3Tft*MO383Gub"]});
$onfleet->workers->insertTask("2Fwp6wS5wLNjDn36r1LJPscA", ["tasks" => ["b3F~z2sU7H*auNKkM6LoiXzP","1ry863mrjoQaqMNxnrD5YvxH","l33lg5WLrja3Tft*MO383Gub"]])
{
  "id": "NngUFbKT95Hly0PkFwPui*kg",
  "timeCreated": 1518563775000,
  "timeLastModified": 1518563775468,
  "organization": "yAM*fDkztrT3gUcz9mNDgNOL",
  "type": "WORKER",
  "activeTask": null,
  "tasks": [
    "b3F~z2sU7H*auNKkM6LoiXzP",
    "1ry863mrjoQaqMNxnrD5YvxH",
    "l33lg5WLrja3Tft*MO383Gub"
  ],
  "worker": "2Fwp6wS5wLNjDn36r1LJPscA"
}