We need to update users emails using the management API but we are not able to do it since the connection we are using is SMS.
If we try to update using the connection
‘email’ we get the following response:
response: {
statusCode: 400,
content: '{
"statusCode":400,"error":"Bad Request","message":"The connection does not exist.","errorCode":"inexistent_connection"
}',
headers: {
date: 'Tue, 23 Jan 2018 05:58:53 GMT',
'content-type': 'application/json; charset=utf-8',
'content-length': '119',
connection: 'close',
vary: 'origin,accept-encoding',
'cache-control': 'private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0'
},
data: {
statusCode: 400,
error: 'Bad Request',
message: 'The connection does not exist.',
errorCode: 'inexistent_connection'
}
}
If we try using connection
‘sms’ we get the following response:
response: {
statusCode: 400,
content: '{
"statusCode":400,"error":"Bad Request","message":"Cannot update email for this user","errorCode":"operation_not_supported"
}',
headers: {
date: 'Tue, 23 Jan 2018 05:57:39 GMT',
'content-type': 'application/json; charset=utf-8',
'content-length': '124',
connection: 'close',
vary: 'origin,accept-encoding',
'cache-control': 'private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0'
},
data: {
statusCode: 400,
error: 'Bad Request',
message: 'Cannot update email for this user',
errorCode: 'operation_not_supported'
}
}
So is there a way to update the email of a user that uses an SMS connection? if there is how can we accomplish this?