method_StartActionByGet.adoc 891 B

1234567891011121314151617181920212223242526272829
  1. = API Method: StartActionByGet
  2. This is the method that allows you to specify the action ID in the URL, and is probably the best to do quick integrations - QR Codes, streamdeck, etc. You cannot pass arguments using this method.
  3. * **HTTP Method**: `GET`
  4. * **Request Type**: Action ID in the URL
  5. * **Response Type**: Execution Tracking ID
  6. include::partial$api/start_action_methods.adoc[]
  7. [#api-eg-startIdUrl]
  8. == Example API call; Start an action by ID in the URL
  9. .curl
  10. ----
  11. user@host: curl http://olivetin.example.com/api/StartActionByGet/pingGithub
  12. ----
  13. The corresponding config.yaml would look like this;
  14. [source,yaml]
  15. ----
  16. actions:
  17. - title: Ping GitHub.com
  18. id: pingGithub
  19. shell: ping github.com -c 1
  20. ----
  21. IDs are used by these API calls, as you probably want the interface to display a human-readable title, whereas the API call doesn't want to have spaces or punctuation.