Gets a list of the alternate emails for the specified user.
userId required | number User Id |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/users/{userId}/alternateemails \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "pageNumber": 1,
- "pageSize": 50,
- "totalPages": 25,
- "totalCount": 136,
- "data": [
- {
- "id": 8150532427671428,
- "confirmed": true,
- "email": "johnathan.doe@smartsheet.com"
}
]
}
Adds one or more alternate email addresses for the specified user.
This operation is only available to system administrators.
userId required | number User Id |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
string User's alternate email address. |
[ ]
{- "message": "SUCCESS",
- "resultCode": 0,
- "data": [
- {
- "id": 8150532427671428,
- "confirmed": true,
- "email": "johnathan.doe@smartsheet.com"
}
]
}
Gets the specified alternate email.
userId required | number User Id |
alternateEmailId required | number Alternate Email Id |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/users/{userId}/alternateemails/{alternateEmailId} \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "id": 8150532427671428,
- "confirmed": true,
- "email": "johnathan.doe@smartsheet.com"
}
Deletes the specified alternate email address for the specified user.
userId required | number User Id |
alternateEmailId required | number Alternate Email Id |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/users/{userId}/alternateemails/{alternatEmailId} \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789" \ -X DELETE
{- "message": "SUCCESS",
- "resultCode": 0
}
Makes the specified alternate email address to become the primary email address for the specified user.
The alternate email address can only be made primary if both conditions are met:
userId required | number User Id |
alternateEmailId required | number Alternate Email Id |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/users/{userId}/alternateemails/{alternatEmailId}/makeprimary \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789" \ -H "Content-Type: application/json" \ -X POST
{- "message": "SUCCESS",
- "resultCode": 0,
- "data": [
- {
- "id": 8150532427671428,
- "confirmed": true,
- "email": "johnathan.doe@smartsheet.com"
}
]
}