EmailAccounts
Update EmailAccount
Update an existing EmailAccount record.
PUT
Update EmailAccount
Updates an existing EmailAccount record. You must include the
Id of the record to update along with all required fields.
Authentication
This endpoint requires OAuth2 authentication. Include a valid bearer token in the
Authorization header.
The authenticated user must be a full unrestricted administrator or have the EmailAccount-Edit role.Enums
eEmailServerType — IncomingServerType values
eEmailServerType — IncomingServerType values
| Value | Name |
|---|---|
| 1 | Imap |
eMessageDeletionPolicy — DeleteMessageSettings values
eMessageDeletionPolicy — DeleteMessageSettings values
| Value | Name |
|---|---|
| 1 | DontDelete |
| 2 | DeleteOnReceive |
| 3 | DeleteWhenDeleting |
Request Body
Required Fields
The Id of the EmailAccount record to update.
ID of the business linked to this record.
The display name value for this email account.
The email address value for this email account.
The incoming server value for this email account.
The incoming server type value for this email account.
The incoming server port value for this email account.
The incoming server username value for this email account.
The delete message settings value for this email account.
The outgoing server value for this email account.
The outgoing server port value for this email account.
The outgoing server username value for this email account.
ID of the last message associated with this record.
The error count value for this email account.
Optional Fields
Whether this email account is currently active.
Whether send notification on new messages is enabled.
The notification email address value for this email account.
Whether incoming server ssl is enabled.
Whether outgoing server ssl is enabled.
The reply to email value for this email account.
Date/time value for last check time.
The google access token value for this email account.
The office365 access token value for this email account.
Code Examples
Response
200
HTTP status code.
200 on success.A human-readable message confirming the update.
Contains the
Id of the updated record.true if the emailaccount was updated successfully.null on success.Example Response
400
A summary of the validation error(s), in the format
PropertyName: error message.null on validation failure.Array of validation errors.
false when the request fails validation.Example Response
Update EmailAccount