Modify
This call is executed to update the profile of customers by their IDs. The parameters of this call are dynamic based on the business setup of the account’s profile.
PUT
/accounts/update
Request elements
Requires either phone number or email.
Parameter | Type | Required | Description |
---|---|---|---|
accountId | String | Yes | Unique ID generated for the customer |
first | String | No | First name of the customer |
last | String | No | Last name of the customer |
phone | String | Yes | Phone number of the customer |
String | Yes | Email ID of the customer | |
gender | String | No | Gender of the customer |
birthdate | Date | No | Date of birth of the customer |
nationality | String | No | Nationality of the customer |
Error messages
Error Code | Error Message |
---|---|
1004 | The following field is not unique |
1010 | At least one of the following fields required |
EXAMPLE REQUEST:
PUT http://[subdomain].datanuum.com/accounts/update?
phone=971520000000
{
"profile": {
"phone": "971520000000",
"email": "john@email.com",
"first": "John",
"last": "Samuel",
"birthdate": "1988-06-06",
"gender": "M",
"city": null,
"country": null,
"nationality": "India",
"language": null,
"businessFields": {
"title": "Mr.",
"maritalStatus": "Married",
"ethnicity": "Asian"
}
}
}
EXAMPLE RESPONSE:
{
"status" : "success"
}