The HTTP Trigger is an action used by the Task Planner plugin. If this trigger is assigned to a task a URL will be displayed in the trigger configuration (Task Planner GUI) to quickly run the given task. For configuration of the trigger see here.
Requests running the task.
# Request # Use user:password for authorization GET /api/taskplanner/4w8yavnk046debwrwkcg4dbqh/trigger/http HTTP/1.1 Authorization: Bearer VGhpcyBpcyBqdXN0IGEgZGVtbyBhY2Nlc3MgdG9rZW4u # Response - Task will be executed HTTP/1.1 200 OK Content-Type: application/json Content-Length: <CONTENT LENGTH> "4w8yavnk046debwrwkcg4dbqh"
# Request # Use user:password for authorization GET /api/taskplanner/4w8yavnk046debwrwkcg4dbqh/trigger/http HTTP/1.1 Authorization: Bearer VGhpcyBpcyBqdXN0IGEgZGVtbyBhY2Nlc3MgdG9rZW4u # Response - Task not yet activated HTTP/1.1 404 Not Found Content-Type: application/json Content-Length: <CONTENT LENGTH> { "error": "The task with the id 4w8yavnk046debwrwkcg4dbqh has not yet been activated to be triggered by an HTTP URL." }
# Browser access http://127.0.0.1:9000/api/taskplanner/4w8yavnk046debwrwkcg4dbqh/trigger/http # Shell access using curl curl -LsH "Authorization: Bearer <access_token>" "http://127.0.0.1:9000/api/taskplanner/4w8yavnk046debwrwkcg4dbqh/trigger/http" # Shell access using curl using username and password curl -Lsu username:password "http://127.0.0.1:9000/api/taskplanner/4w8yavnk046debwrwkcg4dbqh/trigger/http"