shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/tasks/ <<EOF { "name" : "SampleTask", "command" : "(function(params) { require('@arangodb').print(params); })(params)", "params" : { "foo" : "bar", "bar" : "foo" }, "period" : 2 } EOF HTTP/1.1 OK content-type: application/json; charset=utf-8 x-content-type-options: nosniff { "id" : "71093", "name" : "SampleTask", "created" : 1570112303.1783183, "type" : "periodic", "period" : 2, "offset" : 0, "command" : "(function (params) { (function(params) { require('@arangodb').print(params); })(params) } )(params);", "database" : "_system" } shell> curl -X DELETE --header 'accept: application/json' --dump - http://localhost:8529/_api/tasks/71093