curl --request POST \
--url https://api.nuwebgroup.com/v1/customers/update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "123",
"name": "John Doe",
"email": "[email protected]",
"password": "SecurePassword123",
"dob": "1990-01-01",
"addressLine1": "16 Crookes Avenue",
"addressLine2": "Walkley Park",
"postcode": "LN4 2SJ",
"city": "London",
"region": "Greater London",
"countryId": "225",
"phone": "1234567890",
"phoneCode": 33
}
'{
"data": {
"type": "customers",
"id": 1,
"attributes": {
"name": "John Doe",
"email": "[email protected]",
"phone": null,
"phoneCode": null,
"fullPhoneNumber": null,
"img": null,
"locale": null,
"dob": "1980-01-01 00:00:00",
"addressLine1": "16 School Road",
"addressLine2": "Crookes",
"postcode": "S10 8BH",
"createdAt": "2021-11-22T11:59:00.000000Z",
"updatedAt": "2021-11-22T11:59:00.000000Z"
},
"links": {
"self": "http://api.willms.com/v1/customer?id=5"
}
}
}Update customer details.
curl --request POST \
--url https://api.nuwebgroup.com/v1/customers/update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "123",
"name": "John Doe",
"email": "[email protected]",
"password": "SecurePassword123",
"dob": "1990-01-01",
"addressLine1": "16 Crookes Avenue",
"addressLine2": "Walkley Park",
"postcode": "LN4 2SJ",
"city": "London",
"region": "Greater London",
"countryId": "225",
"phone": "1234567890",
"phoneCode": 33
}
'{
"data": {
"type": "customers",
"id": 1,
"attributes": {
"name": "John Doe",
"email": "[email protected]",
"phone": null,
"phoneCode": null,
"fullPhoneNumber": null,
"img": null,
"locale": null,
"dob": "1980-01-01 00:00:00",
"addressLine1": "16 School Road",
"addressLine2": "Crookes",
"postcode": "S10 8BH",
"createdAt": "2021-11-22T11:59:00.000000Z",
"updatedAt": "2021-11-22T11:59:00.000000Z"
},
"links": {
"self": "http://api.willms.com/v1/customer?id=5"
}
}
}The 'Bearer' token can be obtained from the token management interface or via the login endpoint using your admin user credentials.
Request body for updating a customer
Successfully updated the customer.
Show child attributes