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