The dispatch endpoint triggers a saved search, which is what the OP asked for. If you need an API to do any other search activity then you need to submit a new search job. See https://docs.splunk.com/Documentation/Splunk/8.2.1/RESTREF/RESTsearch#search.2Fjobs The job will contain the SPL needed to do what you want done, including a collect command. However, it sounds like the API will be doing the same thing the scheduled search is doing already so why bother? What problem are you trying to solve?
... View more