POST api/v1/message/broadcast
Request Information
URI Parameters
None.
Body Parameters
BroadcastRequestName | Description | Type | Additional information |
---|---|---|---|
title_en | string |
Required |
|
content_en | string |
Required |
|
title_th | string |
Required |
|
content_th | string |
Required |
|
htmlenable | boolean |
Required |
|
category | string |
None. |
|
settingKey | string |
None. |
|
group | integer |
Required |
|
buttons | Collection of Button |
None. |
|
personalizes | Collection of Personalize |
Required |
Request Formats
application/json, text/json
Sample:
{ "title_en": "sample string 1", "content_en": "sample string 2", "title_th": "sample string 3", "content_th": "sample string 4", "htmlenable": true, "category": "sample string 5", "settingKey": "sample string 6", "group": 1, "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": {} } } ], "personalizes": [ { "user_id": "sample string 1", "substitutes": { "sample string 1": {}, "sample string 3": {} } }, { "user_id": "sample string 1", "substitutes": { "sample string 1": {}, "sample string 3": {} } } ] }
application/xml, text/xml
Sample:
<BroadcastRequest 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 5</Category> <ContentEn>sample string 2</ContentEn> <ContentTh>sample string 4</ContentTh> <Group>1</Group> <HtmlEnable>true</HtmlEnable> <Personalizes> <Personalize> <Substitutes> <Items 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> </Items> </Substitutes> <UserId>sample string 1</UserId> </Personalize> <Personalize> <Substitutes> <Items 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> </Items> </Substitutes> <UserId>sample string 1</UserId> </Personalize> </Personalizes> <SettingKey>sample string 6</SettingKey> <TitleEn>sample string 1</TitleEn> <TitleTh>sample string 3</TitleTh> </BroadcastRequest>
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.