POST api/Announcement/UpdateAnnouncement

Documentation for 'UpdateAnnouncement'.

Request Information

Parameters

NameDescriptionAdditional information
request
Documentation for 'request'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "item": {
    "announcementID": 1,
    "announcementTitle": "sample string 2",
    "announcementShortDesc": "sample string 3",
    "announcementLongDesc": "sample string 4",
    "announcementType": "sample string 5",
    "announcementStatus": "sample string 6",
    "announcementEnabled": 7,
    "announcementCreatedDate": "2025-01-09T11:39:26.7911252+08:00",
    "announcementLastUpdateDate": "2025-01-09T11:39:26.7911252+08:00",
    "announcementVisible": 10,
    "announcementDateFrom": "2025-01-09T11:39:26.7911252+08:00",
    "announcementDateTo": "2025-01-09T11:39:26.7911252+08:00",
    "announcementCreator": "sample string 13",
    "announcementCreatorName": "sample string 14",
    "Deleted": 15,
    "AnnouncementAdditionalInfo": 16,
    "AnnouncementAdditionalInfoBtn": "sample string 17",
    "announcementCategory": "sample string 18",
    "promptOutByDefault": 19
  },
  "adminID": "sample string 1"
}

application/xml, text/xml

Sample:
<updateAnnouncementRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SISVServices.Models">
  <adminID>sample string 1</adminID>
  <item xmlns:d2p1="http://schemas.datacontract.org/2004/07/SISVServicesDA.Models">
    <d2p1:AnnouncementAdditionalInfo>16</d2p1:AnnouncementAdditionalInfo>
    <d2p1:AnnouncementAdditionalInfoBtn>sample string 17</d2p1:AnnouncementAdditionalInfoBtn>
    <d2p1:Deleted>15</d2p1:Deleted>
    <d2p1:announcementCategory>sample string 18</d2p1:announcementCategory>
    <d2p1:announcementCreatedDate>2025-01-09T11:39:26.7911252+08:00</d2p1:announcementCreatedDate>
    <d2p1:announcementCreator>sample string 13</d2p1:announcementCreator>
    <d2p1:announcementCreatorName>sample string 14</d2p1:announcementCreatorName>
    <d2p1:announcementDateFrom>2025-01-09T11:39:26.7911252+08:00</d2p1:announcementDateFrom>
    <d2p1:announcementDateTo>2025-01-09T11:39:26.7911252+08:00</d2p1:announcementDateTo>
    <d2p1:announcementEnabled>7</d2p1:announcementEnabled>
    <d2p1:announcementID>1</d2p1:announcementID>
    <d2p1:announcementLastUpdateDate>2025-01-09T11:39:26.7911252+08:00</d2p1:announcementLastUpdateDate>
    <d2p1:announcementLongDesc>sample string 4</d2p1:announcementLongDesc>
    <d2p1:announcementShortDesc>sample string 3</d2p1:announcementShortDesc>
    <d2p1:announcementStatus>sample string 6</d2p1:announcementStatus>
    <d2p1:announcementTitle>sample string 2</d2p1:announcementTitle>
    <d2p1:announcementType>sample string 5</d2p1:announcementType>
    <d2p1:announcementVisible>10</d2p1:announcementVisible>
    <d2p1:promptOutByDefault>19</d2p1:promptOutByDefault>
  </item>
</updateAnnouncementRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedMediaTypeFormatterTracer' to write type 'updateAnnouncementRequest'.