Customers Admin API
Change a customer
PATCH
/api/v1/customers/{uid}
Parameters
uid
string
required
path
The customer's uid.
Request body application/x-www-form-urlencoded
name
string
required
timezone
string
required
language_id
integer
required
Responses
200
The customer was changed.
401
The token is missing or wrong (
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
403
A field is missing or wrong. Each field that failed, with its messages.
404
No customer has this uid.
Change a customer
1
2
3
4
5
6
curl -X PATCH 'https://your-domain/api/v1/customers/6adaabb568fda' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
--data-urlencode 'name=Awesome Solutions' \
--data-urlencode 'timezone=Asia/Tokyo' \
--data-urlencode 'language_id=1'
1
2
3
4
5
6
$client = new Acelle\Client('https://your-domain/api/v1', 'YOUR_API_TOKEN');
$client->customer()->update('6adaabb568fda', [
'name' => 'Awesome Solutions',
'timezone' => 'Asia/Tokyo',
'language_id' => 1,
]);
Response
{
"status": 1,
"message": "Customer was successfully updated",
"customer_uid": "6adaabb568fda"
}