* "POST saved/searches/{name}/dispatch" * endpoint in the REST API Documentation. * @return Splunk_Job * The created search job. */ public function dispatch($args=array()) { $response = $this->sendPost('/dispatch', $args); $xml = new SimpleXMLElement($response->body); $sid = Splunk_XmlUtil::getTextContentAtXpath($xml, '/response/sid'); return $this->service->getJobs()->getReference( $sid, $this->getNamespace()); } }