POST api/EmailController/SaveEmailGatewayInfo

Request Information

URI Parameters

None.

Body Parameters

EmailGatewayInfo
NameDescriptionTypeAdditional information
Id

integer

None.

Gateway

string

None.

OutgoingSMTP

string

None.

EmailAddress

string

None.

ServerPort

integer

None.

UserName

string

None.

Password

string

None.

EntryUser

integer

None.

ModifyUser

integer

None.

EntryDate

date

None.

ModifyDate

date

None.

OrganizationId

integer

None.

CompanyId

integer

None.

BranchesId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Gateway": "sample string 2",
  "OutgoingSMTP": "sample string 3",
  "EmailAddress": "sample string 4",
  "ServerPort": 5,
  "UserName": "sample string 6",
  "Password": "sample string 7",
  "EntryUser": 8,
  "ModifyUser": 9,
  "EntryDate": "2025-10-29T13:17:21.6193591+05:00",
  "ModifyDate": "2025-10-29T13:17:21.6193591+05:00",
  "OrganizationId": 11,
  "CompanyId": 12,
  "BranchesId": 13
}

application/xml, text/xml

Sample:
<EmailGatewayInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Architecture.Model.SystemUtilities">
  <BranchesId>13</BranchesId>
  <CompanyId>12</CompanyId>
  <EmailAddress>sample string 4</EmailAddress>
  <EntryDate>2025-10-29T13:17:21.6193591+05:00</EntryDate>
  <EntryUser>8</EntryUser>
  <Gateway>sample string 2</Gateway>
  <Id>1</Id>
  <ModifyDate>2025-10-29T13:17:21.6193591+05:00</ModifyDate>
  <ModifyUser>9</ModifyUser>
  <OrganizationId>11</OrganizationId>
  <OutgoingSMTP>sample string 3</OutgoingSMTP>
  <Password>sample string 7</Password>
  <ServerPort>5</ServerPort>
  <UserName>sample string 6</UserName>
</EmailGatewayInfo>

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 'EmailGatewayInfo'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.