return response of create

This commit is contained in:
Martz
2023-03-31 00:20:39 +02:00
parent ec7434f089
commit 9d125d8cc2

View File

@@ -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));
}
/**