shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/tasks <<EOF {"id":"testTask","command":"console.log('Hello from task!');","offset":10000} EOF shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/tasks/testTask HTTP/1.1 OK content-type: application/json; charset=utf-8 x-content-type-options: nosniff { "id" : "testTask", "name" : "user-defined task", "created" : 1561367208.7129714, "type" : "timed", "offset" : 10000, "command" : "(function (params) { console.log('Hello from task!'); } )(params);", "database" : "_system" }