POST api/Message/MarkUserOptIn
Request Information
URI Parameters
None.
Body Parameters
GupShupMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| type | string |
None. |
|
| text | string |
None. |
|
| phoneno | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"type": "sample string 1",
"text": "sample string 2",
"phoneno": "sample string 3"
}
application/xml, text/xml
Sample:
<GupShupMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/selfhatch.Models"> <phoneno>sample string 3</phoneno> <text>sample string 2</text> <type>sample string 1</type> </GupShupMessage>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResultViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| status | boolean |
None. |
|
| message | string |
None. |
|
| data | Object |
None. |
|
| errorCode | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": true,
"message": "sample string 2",
"data": {},
"errorCode": 4
}
application/xml, text/xml
Sample:
<HttpResultViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/selfhatch.Models"> <data /> <errorCode>4</errorCode> <message>sample string 2</message> <status>true</status> </HttpResultViewModel>