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" : 1570112303.1886978, "type" : "timed", "offset" : 10000, "command" : "(function (params) { console.log('Hello from task!'); } )(params);", "database" : "_system" }