Change User Email Alias to Primary Login
Hello,
I am trying to use API to add email alias and make the email alias as the primary login.
Adding Email alias is successful via API. But while using API to change the added alias into Primary email, it failes with this message:
Message: Bad Request
Status: 400
Code: bad_request
Request id: ***number removed for privacy***35901071bb226a
Headers: {'Content-Length': '244', 'Server': 'ATS', 'Cache-Control': 'no-cache, no-store', 'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Strict-Transport-Securit
y': 'max-age=31536000; includeSubDomains', 'Age': '2', 'Vary': 'Accept-Encoding', 'Date': 'Wed, 26 Apr 2017 20:46:20 GMT', 'Connection': 'keep-alive'}
URL: https://api.box.com/2.0/users/***number removed for privacy***
Method: PUT
Context info: {'errors': [{'name': 'new_primary_email', 'reason': 'invalid_parameter', 'message': "Invalid value 'boxdev_newuser@<>.com'."}]}
After adding the email alias, the account setting looks like this:
Is this becuase the new email alias is not been confirmed? If it is, Is there a way to promote alias into primary login without the user confirmation via API?
thanks in advance.
thanks,
Bibek
Please sign in to leave a comment.
Comments
0 comments