PUT api/PutEmailAccount/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

EmailAccount
NameDescriptionTypeAdditional information
Id

integer

None.

Email

string

None.

DisplayName

string

None.

Host

string

None.

Port

integer

None.

Username

string

None.

Password

string

None.

EnableSsl

boolean

None.

UseDefaultCredentials

boolean

None.

QueuedEmails

Collection of QueuedEmail

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Email": "sample string 2",
  "DisplayName": "sample string 3",
  "Host": "sample string 4",
  "Port": 5,
  "Username": "sample string 6",
  "Password": "sample string 7",
  "EnableSsl": true,
  "UseDefaultCredentials": true,
  "QueuedEmails": [
    {
      "Id": 1,
      "Priority": 2,
      "From": "sample string 3",
      "FromName": "sample string 4",
      "To": "sample string 5",
      "ToName": "sample string 6",
      "CC": "sample string 7",
      "Bcc": "sample string 8",
      "Subject": "sample string 9",
      "Body": "sample string 10",
      "CreatedOnUtc": "2025-05-19T10:23:32.3523893+07:00",
      "SentTries": 12,
      "SentOnUtc": "2025-05-19T10:23:32.3523893+07:00",
      "EmailAccountId": 13
    },
    {
      "Id": 1,
      "Priority": 2,
      "From": "sample string 3",
      "FromName": "sample string 4",
      "To": "sample string 5",
      "ToName": "sample string 6",
      "CC": "sample string 7",
      "Bcc": "sample string 8",
      "Subject": "sample string 9",
      "Body": "sample string 10",
      "CreatedOnUtc": "2025-05-19T10:23:32.3523893+07:00",
      "SentTries": 12,
      "SentOnUtc": "2025-05-19T10:23:32.3523893+07:00",
      "EmailAccountId": 13
    }
  ]
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'RCPQG_API.Models.QueuedEmail' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'RCPQG_API.Models.QueuedEmail' contains cycles and cannot be serialized if reference tracking is disabled.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'EmailAccount'.

Response Information

Resource Description

None.