POST api/Admin/SetProjectEmailIntegration?projectId={projectId}
SetCustomDefectReportSettingList info based on project id
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
projectId |
projectId |
integer |
Required |
Body Parameters
setting
EmailOutgoingSettingName | Description | Type | Additional information |
---|---|---|---|
ProjectID | integer |
None. |
|
SMTPSSLEnabled | integer |
None. |
|
SMTPPort | integer |
None. |
|
SMTPLogonNeeded | integer |
None. |
|
MailProtocolType4Win | integer |
None. |
|
TextLength | integer |
None. |
|
SMTPMailServer | string |
None. |
|
SMTPAccount | string |
None. |
|
SMTPPassword | string |
None. |
|
CharacterSet | string |
None. |
|
CharacterSets | Collection of string |
None. |
|
AlwaysThisAccount | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "ProjectID": 1, "SMTPSSLEnabled": 2, "SMTPPort": 3, "SMTPLogonNeeded": 4, "MailProtocolType4Win": 5, "TextLength": 6, "SMTPMailServer": "sample string 7", "SMTPAccount": "sample string 8", "SMTPPassword": "sample string 9", "CharacterSet": "sample string 10", "CharacterSets": [ "sample string 1", "sample string 2" ], "AlwaysThisAccount": 11 }
application/xml, text/xml
Sample:
<EmailOutgoingSetting xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <AlwaysThisAccount>11</AlwaysThisAccount> <CharacterSet>sample string 10</CharacterSet> <CharacterSets xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </CharacterSets> <MailProtocolType4Win>5</MailProtocolType4Win> <ProjectID>1</ProjectID> <SMTPAccount>sample string 8</SMTPAccount> <SMTPLogonNeeded>4</SMTPLogonNeeded> <SMTPMailServer>sample string 7</SMTPMailServer> <SMTPPassword>sample string 9</SMTPPassword> <SMTPPort>3</SMTPPort> <SMTPSSLEnabled>2</SMTPSSLEnabled> <TextLength>6</TextLength> </EmailOutgoingSetting>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SetCustomDefectReportSettingList info based on project id
ApiReturnName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" } }
application/xml, text/xml
Sample:
<ApiReturn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common"> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </ApiReturn>