ar body = {
"addresses": [ {"display": "(7123)", "mediaType": "PHONE", "type": "WORK"}],
"title": "New title",
"version": 26
};
var apiInstance = new platformClient.UsersApi();
var userId = "userId"; // String | User ID
// Object | User
apiInstance.patchUser(userId, body)
.then(function(data) {
console.log(`patchUser success! data: ${JSON.stringify(data, null, 2)}`);
})
.catch(function(err) {
console.log('There was a failure calling patchUser');
console.error(err);
});
i am using the code above and once i add address to address i get this error
"{"status":400,"code":"bad.request","message":"The requested operation failed with status 400","contextId":"a4e9f292-efe8-4085-bb31-3a08c6c9c33b","details":[],"errors":[]}"
if i make "addresses" :[], that will work and will clear all address but it won't work when i pass address to it
all other fields seems to be working with no issues
Note i got same issue with python SDK as well