POST api/AnnouncementCategory/Add
Request Information
URI Parameters
None.
Body Parameters
AnnouncementCategoryAddDto| Name | Description | Type | Additional information |
|---|---|---|---|
| announcementCategoryLanguage | AnnouncementCategoryLanguageAddDto |
None. |
|
| WebSiteID | globally unique identifier |
None. |
|
| AnnouncementType | AnnouncementType |
None. |
|
| Order | integer |
None. |
|
| LanguageID | globally unique identifier |
None. |
|
| MainCategoryID | globally unique identifier |
None. |
|
| CoverPhotoID | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"announcementCategoryLanguage": {
"announcementCategoryID": "17829c03-461b-4730-8e32-08cf7cbb8c5e",
"category": "sample string 1",
"languageID": "30a9662a-658f-44c1-a6c9-118734cff5e6"
},
"webSiteID": "fc88862b-96be-4bbe-9f9e-5f2acbccb14f",
"announcementType": 1,
"order": 1,
"languageID": "5a8e82e9-950d-4782-a0cf-8a89293e80e9",
"mainCategoryID": "3c491ff8-ff75-4312-9dc7-96fbd439a967",
"coverPhotoID": "c9646b26-82e5-4d4e-bd16-b7d46b69c9fc"
}
application/xml, text/xml
Sample:
<AnnouncementCategoryAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RS.Core.Service.DTOs">
<AnnouncementType>News</AnnouncementType>
<CoverPhotoID>c9646b26-82e5-4d4e-bd16-b7d46b69c9fc</CoverPhotoID>
<LanguageID>5a8e82e9-950d-4782-a0cf-8a89293e80e9</LanguageID>
<MainCategoryID>3c491ff8-ff75-4312-9dc7-96fbd439a967</MainCategoryID>
<Order>1</Order>
<WebSiteID>fc88862b-96be-4bbe-9f9e-5f2acbccb14f</WebSiteID>
<announcementCategoryLanguage>
<AnnouncementCategoryID>17829c03-461b-4730-8e32-08cf7cbb8c5e</AnnouncementCategoryID>
<Category>sample string 1</Category>
<LanguageID>30a9662a-658f-44c1-a6c9-118734cff5e6</LanguageID>
</announcementCategoryLanguage>
</AnnouncementCategoryAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"announcementCategoryLanguage":{"AnnouncementCategoryID":"17829c03-461b-4730-8e32-08cf7cbb8c5e","Category":"sample string 1","LanguageID":"30a9662a-658f-44c1-a6c9-118734cff5e6"},"WebSiteID":"fc88862b-96be-4bbe-9f9e-5f2acbccb14f","AnnouncementType":1,"Order":1,"LanguageID":"5a8e82e9-950d-4782-a0cf-8a89293e80e9","MainCategoryID":"3c491ff8-ff75-4312-9dc7-96fbd439a967","CoverPhotoID":"c9646b26-82e5-4d4e-bd16-b7d46b69c9fc"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.