Hi,
I want to add a user over php script like as follow.
<?php
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Request;
$client = new GuzzleHttp\Client();
$res = $client->request(
'PUT',
'https://api.nuki.io/account/user',
[
'headers' => [
'Accept' => 'application/json',
'Authorization: Bearer' => 'My API token',
'd' => '{"email": "mail@company.com","name": "Max Mustermann"}'
],
]
);
?>
But I get this Error
Client error:
PUT https://api.nuki.io/account/user
resulted in a400 Bad Request
response: {“code”:400,“description”:“The request could not be understood by the server due to malformed syntax”
Can you help me please ?
BR Ertan