From 9d125d8cc20620e8b1b8a1106323b3490c718c29 Mon Sep 17 00:00:00 2001 From: Martz Date: Fri, 31 Mar 2023 00:20:39 +0200 Subject: [PATCH] return response of create --- src/Collection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Collection.php b/src/Collection.php index 85f92de..4cd8599 100644 --- a/src/Collection.php +++ b/src/Collection.php @@ -78,9 +78,9 @@ class Collection * @param array $queryParams * @return void */ - public function create(array $bodyParams = [], array $queryParams = []): void + public function create(array $bodyParams = [], array $queryParams = []): string { - $this->doRequest($this->url . "/api/collections/" . $this->collection . "/records", 'POST', json_encode($bodyParams)); + return $this->doRequest($this->url . "/api/collections/" . $this->collection . "/records", 'POST', json_encode($bodyParams)); } /**