diff --git a/lib/Models/REST/IngestClient.php b/lib/Models/REST/IngestClient.php index c501fb76a0321a41854468c68a79e9489dfda8e0..09a3c20231614dfbee5bbc366ae28fa97cbadc2a 100644 --- a/lib/Models/REST/IngestClient.php +++ b/lib/Models/REST/IngestClient.php @@ -79,10 +79,10 @@ class IngestClient extends RestClient $query['capture.device.names'] = $capabilities; } - $options = $this->ocRestClient->getQueryParams($query); - $response = $this->ocRestClient->performGet($uri, $options); + $options = $this->ocRestClient->getFormParams($query); + $response = $this->ocRestClient->performPost($uri, $options); - return $response['code'] == 200; + return (in_array($response['code'], [200, 201]) !== false); } else { $response = $this->opencastApi->ingest->schedule($mediaPackage, $workflowDefinitionId); return (in_array($response['code'], [200, 201]) !== false);