invoiceninja / sdk-php

PHP wrapper for Invoice Ninja's REST API
https://www.invoiceninja.com
83 stars 41 forks source link

Update overwrites entire client #94

Closed KRens closed 2 years ago

KRens commented 2 years ago

Maybe it's usefull to add to the readme documentation file that running "update", empties the entire client if a field is not present. I accidentally erased all details of a user:

$client = $ninja->clients->update($clients['data'][0]['id'], ['name' => 'A new client name updated']);

image

turbo124 commented 2 years ago

Updated here:

95