POST api/Highlight/AddNewHighlight

Documentation for 'AddNewHighlight'.

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": {
    "id": "sample string 1",
    "category": "sample string 2",
    "title": "sample string 3",
    "description": "sample string 4",
    "venue": "sample string 5",
    "address": "sample string 6",
    "startDate": "2025-01-09T11:33:17.1905344+08:00",
    "endDate": "2025-01-09T11:33:17.1905344+08:00",
    "displayStartDate": "2025-01-09T11:33:17.1905344+08:00",
    "displayEndDate": "2025-01-09T11:33:17.1905344+08:00",
    "createDate": "2025-01-09T11:33:17.1905344+08:00",
    "updateDate": "2025-01-09T11:33:17.1905344+08:00",
    "adminID": "sample string 13",
    "btnText": "sample string 14",
    "btnLink": "sample string 15",
    "status": "sample string 16",
    "enabled": "sample string 17",
    "SeqOrder": "sample string 18",
    "highlightDate": "sample string 19",
    "type": "sample string 20",
    "file": [
      {
        "id": 1,
        "fileExt": "sample string 2",
        "type": "sample string 3",
        "fileBinary": "QEBA",
        "fileName": "sample string 4"
      },
      {
        "id": 1,
        "fileExt": "sample string 2",
        "type": "sample string 3",
        "fileBinary": "QEBA",
        "fileName": "sample string 4"
      },
      {
        "id": 1,
        "fileExt": "sample string 2",
        "type": "sample string 3",
        "fileBinary": "QEBA",
        "fileName": "sample string 4"
      }
    ]
  },
  "adminID": "sample string 1"
}

application/xml, text/xml

Sample:
<addNewHighlightRequest 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:SeqOrder>sample string 18</d2p1:SeqOrder>
    <d2p1:address>sample string 6</d2p1:address>
    <d2p1:adminID>sample string 13</d2p1:adminID>
    <d2p1:btnLink>sample string 15</d2p1:btnLink>
    <d2p1:btnText>sample string 14</d2p1:btnText>
    <d2p1:category>sample string 2</d2p1:category>
    <d2p1:createDate>2025-01-09T11:33:17.1905344+08:00</d2p1:createDate>
    <d2p1:description>sample string 4</d2p1:description>
    <d2p1:displayEndDate>2025-01-09T11:33:17.1905344+08:00</d2p1:displayEndDate>
    <d2p1:displayStartDate>2025-01-09T11:33:17.1905344+08:00</d2p1:displayStartDate>
    <d2p1:enabled>sample string 17</d2p1:enabled>
    <d2p1:endDate>2025-01-09T11:33:17.1905344+08:00</d2p1:endDate>
    <d2p1:file>
      <d2p1:file>
        <d2p1:fileBinary>QEBA</d2p1:fileBinary>
        <d2p1:fileExt>sample string 2</d2p1:fileExt>
        <d2p1:fileName>sample string 4</d2p1:fileName>
        <d2p1:id>1</d2p1:id>
        <d2p1:type>sample string 3</d2p1:type>
      </d2p1:file>
      <d2p1:file>
        <d2p1:fileBinary>QEBA</d2p1:fileBinary>
        <d2p1:fileExt>sample string 2</d2p1:fileExt>
        <d2p1:fileName>sample string 4</d2p1:fileName>
        <d2p1:id>1</d2p1:id>
        <d2p1:type>sample string 3</d2p1:type>
      </d2p1:file>
      <d2p1:file>
        <d2p1:fileBinary>QEBA</d2p1:fileBinary>
        <d2p1:fileExt>sample string 2</d2p1:fileExt>
        <d2p1:fileName>sample string 4</d2p1:fileName>
        <d2p1:id>1</d2p1:id>
        <d2p1:type>sample string 3</d2p1:type>
      </d2p1:file>
    </d2p1:file>
    <d2p1:highlightDate>sample string 19</d2p1:highlightDate>
    <d2p1:id>sample string 1</d2p1:id>
    <d2p1:startDate>2025-01-09T11:33:17.1905344+08:00</d2p1:startDate>
    <d2p1:status>sample string 16</d2p1:status>
    <d2p1:title>sample string 3</d2p1:title>
    <d2p1:type>sample string 20</d2p1:type>
    <d2p1:updateDate>2025-01-09T11:33:17.1905344+08:00</d2p1:updateDate>
    <d2p1:venue>sample string 5</d2p1:venue>
  </item>
</addNewHighlightRequest>

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 'addNewHighlightRequest'.