Adds a new email alias to a user account..
12345
The ID of the user.
"alias@example.com"
The email address to add to the account as an alias.
Note: The domain of the email alias needs to be registered to your enterprise. See the domain verification guide for steps to add a new domain.
Returns the newly created email alias object.
An unexpected client error.
curl -i -X POST "https://api.box.com/2.0/users/12345/email_aliases" \
-H "authorization: Bearer <ACCESS_TOKEN>" \
-H "content-type: application/json" \
-d '{
"email": "alias@example.com"
}'
{
"id": "11446498",
"type": "email_alias",
"email": "alias@example.com",
"is_confirmed": true
}