diff --git a/expose/api/src/Matomo/PhraseanetClient.php b/expose/api/src/Matomo/PhraseanetClient.php index 428255636..f6ae14721 100644 --- a/expose/api/src/Matomo/PhraseanetClient.php +++ b/expose/api/src/Matomo/PhraseanetClient.php @@ -32,6 +32,9 @@ public function patchField(array $stat): void unset($stat['idsubdatatable']); $this->client->request('GET', sprintf('/records/%s/%s', $baseId, $recordId), [ + 'headers' => [ + 'Authorization' => 'OAuth '.$this->authToken, + ], 'json' => [ 'metadatas' => [ [