POST api/site/updateAnnouncement
Request Information
URI Parameters
None.
Body Parameters
AnnouncementCreateDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| AnnouncementTypeId | integer |
Required |
|
| AnnouncementName | string |
Required |
|
| DisplayOrder | integer |
Required |
|
| ShortDesc | string |
Required |
|
| LongDesc | string |
None. |
|
| ValidUntilDate | date |
Required |
|
| AnnouncementDate | date |
None. |
|
| ImageFile | string |
None. |
|
| ExternalURL | string |
None. |
|
| FlyerName | string |
None. |
|
| Active | boolean |
None. |
|
| AnnouncementType | AnnouncementTypeDTO |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"AnnouncementTypeId": 2,
"AnnouncementName": "sample string 3",
"DisplayOrder": 4,
"ShortDesc": "sample string 5",
"LongDesc": "sample string 6",
"ValidUntilDate": "2025-12-05T22:12:18.2737645-07:00",
"AnnouncementDate": "2025-12-05T22:12:18.2737645-07:00",
"ImageFile": "sample string 9",
"ExternalURL": "sample string 10",
"FlyerName": "sample string 11",
"Active": true,
"AnnouncementType": {
"Id": 1,
"AnnouncementTypeName": "sample string 2",
"Active": true
}
}
application/xml, text/xml
Sample:
<AnnouncementCreateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HTCCLI.API.Models.ViewModel">
<Active>true</Active>
<AnnouncementDate>2025-12-05T22:12:18.2737645-07:00</AnnouncementDate>
<AnnouncementName>sample string 3</AnnouncementName>
<AnnouncementType>
<Active>true</Active>
<AnnouncementTypeName>sample string 2</AnnouncementTypeName>
<Id>1</Id>
</AnnouncementType>
<AnnouncementTypeId>2</AnnouncementTypeId>
<DisplayOrder>4</DisplayOrder>
<ExternalURL>sample string 10</ExternalURL>
<FlyerName>sample string 11</FlyerName>
<Id>1</Id>
<ImageFile>sample string 9</ImageFile>
<LongDesc>sample string 6</LongDesc>
<ShortDesc>sample string 5</ShortDesc>
<ValidUntilDate>2025-12-05T22:12:18.2737645-07:00</ValidUntilDate>
</AnnouncementCreateDTO>
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.