POST api/SMSTemplate/AddSMSTemplate
Request Information
URI Parameters
None.
Body Parameters
SMSTemplateDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| title | string |
None. |
|
| body | string |
None. |
|
| agentId | integer |
None. |
|
| isReminder | boolean |
None. |
|
| day | integer |
None. |
|
| month | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"title": "sample string 2",
"body": "sample string 3",
"agentId": 4,
"isReminder": true,
"day": 1,
"month": 1
}
application/xml, text/xml
Sample:
<SMSTemplateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Application.DTOs"> <agentId>4</agentId> <body>sample string 3</body> <day>1</day> <id>1</id> <isReminder>true</isReminder> <month>1</month> <title>sample string 2</title> </SMSTemplateDTO>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IdentityResultDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| errorMessage | string |
None. |
|
| error | Collection of string |
None. |
|
| result | string |
None. |
|
| resultObject | Collection of Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"errorMessage": "sample string 2",
"error": [
"sample string 1",
"sample string 2"
],
"result": "sample string 3",
"resultObject": [
{},
{}
]
}
application/xml, text/xml
Sample:
<IdentityResultDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Application.DTOs">
<error xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</error>
<errorMessage>sample string 2</errorMessage>
<result>sample string 3</result>
<resultObject xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:anyType />
<d2p1:anyType />
</resultObject>
<success>true</success>
</IdentityResultDTO>