POST api/v1/message
Request Information
URI Parameters
None.
Body Parameters
MessageRequestName | Description | Type | Additional information |
---|---|---|---|
tconnectid | string |
None. |
|
vin | string |
None. |
|
title-en | string |
Required |
|
content-en | string |
Required |
|
title-th | string |
None. |
|
content-th | string |
None. |
|
htmlenable | boolean |
Required |
|
category | string |
None. |
|
group | integer |
None. |
|
settingKey | string |
None. |
|
buttons | Collection of Button |
None. |
Request Formats
application/json, text/json
Sample:
{ "tconnectid": "sample string 1", "vin": "sample string 2", "title-en": "sample string 3", "content-en": "sample string 4", "title-th": "sample string 5", "content-th": "sample string 6", "htmlenable": true, "category": "sample string 8", "group": 1, "settingKey": "sample string 9", "buttons": [ { "name_en": "sample string 1", "name_th": "sample string 2", "action": "sample string 3", "ios_action": "sample string 4", "hide_buttons_notifications": true, "params": { "sample string 1": {}, "sample string 3": {} } }, { "name_en": "sample string 1", "name_th": "sample string 2", "action": "sample string 3", "ios_action": "sample string 4", "hide_buttons_notifications": true, "params": { "sample string 1": {}, "sample string 3": {} } } ] }
application/xml, text/xml
Sample:
<MessageRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LDCM.MyServices.Models"> <Buttons> <Button> <_x003C_Action_x003E_k__BackingField>sample string 3</_x003C_Action_x003E_k__BackingField> <_x003C_HideButtonsNotifications_x003E_k__BackingField>true</_x003C_HideButtonsNotifications_x003E_k__BackingField> <_x003C_IOsAction_x003E_k__BackingField>sample string 4</_x003C_IOsAction_x003E_k__BackingField> <_x003C_NameEnglish_x003E_k__BackingField>sample string 1</_x003C_NameEnglish_x003E_k__BackingField> <_x003C_NameThai_x003E_k__BackingField>sample string 2</_x003C_NameThai_x003E_k__BackingField> <_x003C_Params_x003E_k__BackingField> <_x003C_Items_x003E_k__BackingField xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringanyType> <d5p1:Key>sample string 1</d5p1:Key> <d5p1:Value /> </d5p1:KeyValueOfstringanyType> <d5p1:KeyValueOfstringanyType> <d5p1:Key>sample string 3</d5p1:Key> <d5p1:Value /> </d5p1:KeyValueOfstringanyType> </_x003C_Items_x003E_k__BackingField> </_x003C_Params_x003E_k__BackingField> </Button> <Button> <_x003C_Action_x003E_k__BackingField>sample string 3</_x003C_Action_x003E_k__BackingField> <_x003C_HideButtonsNotifications_x003E_k__BackingField>true</_x003C_HideButtonsNotifications_x003E_k__BackingField> <_x003C_IOsAction_x003E_k__BackingField>sample string 4</_x003C_IOsAction_x003E_k__BackingField> <_x003C_NameEnglish_x003E_k__BackingField>sample string 1</_x003C_NameEnglish_x003E_k__BackingField> <_x003C_NameThai_x003E_k__BackingField>sample string 2</_x003C_NameThai_x003E_k__BackingField> <_x003C_Params_x003E_k__BackingField> <_x003C_Items_x003E_k__BackingField xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringanyType> <d5p1:Key>sample string 1</d5p1:Key> <d5p1:Value /> </d5p1:KeyValueOfstringanyType> <d5p1:KeyValueOfstringanyType> <d5p1:Key>sample string 3</d5p1:Key> <d5p1:Value /> </d5p1:KeyValueOfstringanyType> </_x003C_Items_x003E_k__BackingField> </_x003C_Params_x003E_k__BackingField> </Button> </Buttons> <Category>sample string 8</Category> <ContentEn>sample string 4</ContentEn> <ContentTh>sample string 6</ContentTh> <GroupId>1</GroupId> <HtmlEnable>true</HtmlEnable> <SettingKey>sample string 9</SettingKey> <TConnectId>sample string 1</TConnectId> <TitleEn>sample string 3</TitleEn> <TitleTh>sample string 5</TitleTh> <Vin>sample string 2</Vin> </MessageRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.