ids.adoc 553 B

12345678910111213141516
  1. [#action-ids]
  2. = Action IDs
  3. OliveTin actions do not require IDs to be specified in the `config.yaml`, as most users of OliveTin start off with the Web Interface. However, if you want to use OliveTin actions via the xref:api/intro.adoc[API], then you will need to set your action IDs manually.
  4. NOTE: OliveTin will automatically generate a new ID for actions every time it starts up, for actions that don't have an `id:` property set.
  5. [source,yaml]
  6. ----
  7. actions:
  8. - title: Start the reactor
  9. id: start_reactor
  10. shell: /bin/startReactor.sh
  11. ----