POST api/Event/eventAddClass

Documentation for 'eventAddClass'.

Request Information

Parameters

NameDescriptionAdditional information
request
Documentation for 'request'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "classID": "sample string 1",
  "eventID": "sample string 2",
  "sessionID": "sample string 3",
  "venue": "sample string 4",
  "room": "sample string 5",
  "venueLat": "sample string 6",
  "venueLng": "sample string 7",
  "startDate": "2025-01-09T12:16:07.3910459+08:00",
  "endDate": "2025-01-09T12:16:07.3910459+08:00",
  "registrationStart": "2025-01-09T12:16:07.3910459+08:00",
  "registrationEnd": "2025-01-09T12:16:07.3910459+08:00",
  "maxPax": "sample string 8",
  "createDate": "2025-01-09T12:16:07.3910459+08:00",
  "adminID": "sample string 9",
  "status": "sample string 10",
  "trainer": [
    {
      "EventID": "sample string 1",
      "ClassID": "sample string 2",
      "SpeakerID": "sample string 3",
      "Name": "sample string 4",
      "NRIC": "sample string 5",
      "Designation": "sample string 6",
      "Discipline": "sample string 7",
      "CreateDate": "2025-01-09T12:16:07.3910459+08:00"
    },
    {
      "EventID": "sample string 1",
      "ClassID": "sample string 2",
      "SpeakerID": "sample string 3",
      "Name": "sample string 4",
      "NRIC": "sample string 5",
      "Designation": "sample string 6",
      "Discipline": "sample string 7",
      "CreateDate": "2025-01-09T12:16:07.3910459+08:00"
    },
    {
      "EventID": "sample string 1",
      "ClassID": "sample string 2",
      "SpeakerID": "sample string 3",
      "Name": "sample string 4",
      "NRIC": "sample string 5",
      "Designation": "sample string 6",
      "Discipline": "sample string 7",
      "CreateDate": "2025-01-09T12:16:07.3910459+08:00"
    }
  ],
  "eventPrice": [
    {
      "EventID": "sample string 1",
      "classID": "sample string 2",
      "priceID": "sample string 3",
      "priceTitle": "sample string 4",
      "price": "sample string 5",
      "priceCurrency": "sample string 6",
      "priceStartDate": "2025-01-09T12:16:07.3910459+08:00",
      "priceEndDate": "2025-01-09T12:16:07.3910459+08:00",
      "createDate": "2025-01-09T12:16:07.3910459+08:00",
      "updateDate": "2025-01-09T12:16:07.3910459+08:00",
      "requireID": "sample string 7",
      "requireNRIC": "sample string 8",
      "adminID": "sample string 9",
      "enabled": "sample string 10",
      "deleted": "sample string 11"
    },
    {
      "EventID": "sample string 1",
      "classID": "sample string 2",
      "priceID": "sample string 3",
      "priceTitle": "sample string 4",
      "price": "sample string 5",
      "priceCurrency": "sample string 6",
      "priceStartDate": "2025-01-09T12:16:07.3910459+08:00",
      "priceEndDate": "2025-01-09T12:16:07.3910459+08:00",
      "createDate": "2025-01-09T12:16:07.3910459+08:00",
      "updateDate": "2025-01-09T12:16:07.3910459+08:00",
      "requireID": "sample string 7",
      "requireNRIC": "sample string 8",
      "adminID": "sample string 9",
      "enabled": "sample string 10",
      "deleted": "sample string 11"
    },
    {
      "EventID": "sample string 1",
      "classID": "sample string 2",
      "priceID": "sample string 3",
      "priceTitle": "sample string 4",
      "price": "sample string 5",
      "priceCurrency": "sample string 6",
      "priceStartDate": "2025-01-09T12:16:07.3910459+08:00",
      "priceEndDate": "2025-01-09T12:16:07.3910459+08:00",
      "createDate": "2025-01-09T12:16:07.3910459+08:00",
      "updateDate": "2025-01-09T12:16:07.3910459+08:00",
      "requireID": "sample string 7",
      "requireNRIC": "sample string 8",
      "adminID": "sample string 9",
      "enabled": "sample string 10",
      "deleted": "sample string 11"
    }
  ],
  "classInfo": [
    {
      "classID": "sample string 1",
      "infoType": "sample string 2",
      "info": "sample string 3",
      "createDate": "2025-01-09T12:16:07.3910459+08:00",
      "updateDate": "2025-01-09T12:16:07.3910459+08:00",
      "adminID": "sample string 4"
    },
    {
      "classID": "sample string 1",
      "infoType": "sample string 2",
      "info": "sample string 3",
      "createDate": "2025-01-09T12:16:07.3910459+08:00",
      "updateDate": "2025-01-09T12:16:07.3910459+08:00",
      "adminID": "sample string 4"
    },
    {
      "classID": "sample string 1",
      "infoType": "sample string 2",
      "info": "sample string 3",
      "createDate": "2025-01-09T12:16:07.3910459+08:00",
      "updateDate": "2025-01-09T12:16:07.3910459+08:00",
      "adminID": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<eventClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SISVServicesDA.Models">
  <adminID>sample string 9</adminID>
  <classID>sample string 1</classID>
  <classInfo>
    <classInfo>
      <adminID>sample string 4</adminID>
      <classID>sample string 1</classID>
      <createDate>2025-01-09T12:16:07.3910459+08:00</createDate>
      <info>sample string 3</info>
      <infoType>sample string 2</infoType>
      <updateDate>2025-01-09T12:16:07.3910459+08:00</updateDate>
    </classInfo>
    <classInfo>
      <adminID>sample string 4</adminID>
      <classID>sample string 1</classID>
      <createDate>2025-01-09T12:16:07.3910459+08:00</createDate>
      <info>sample string 3</info>
      <infoType>sample string 2</infoType>
      <updateDate>2025-01-09T12:16:07.3910459+08:00</updateDate>
    </classInfo>
    <classInfo>
      <adminID>sample string 4</adminID>
      <classID>sample string 1</classID>
      <createDate>2025-01-09T12:16:07.3910459+08:00</createDate>
      <info>sample string 3</info>
      <infoType>sample string 2</infoType>
      <updateDate>2025-01-09T12:16:07.3910459+08:00</updateDate>
    </classInfo>
  </classInfo>
  <createDate>2025-01-09T12:16:07.3910459+08:00</createDate>
  <endDate>2025-01-09T12:16:07.3910459+08:00</endDate>
  <eventID>sample string 2</eventID>
  <eventPrice>
    <EventPrice>
      <EventID>sample string 1</EventID>
      <adminID>sample string 9</adminID>
      <classID>sample string 2</classID>
      <createDate>2025-01-09T12:16:07.3910459+08:00</createDate>
      <deleted>sample string 11</deleted>
      <enabled>sample string 10</enabled>
      <price>sample string 5</price>
      <priceCurrency>sample string 6</priceCurrency>
      <priceEndDate>2025-01-09T12:16:07.3910459+08:00</priceEndDate>
      <priceID>sample string 3</priceID>
      <priceStartDate>2025-01-09T12:16:07.3910459+08:00</priceStartDate>
      <priceTitle>sample string 4</priceTitle>
      <requireID>sample string 7</requireID>
      <requireNRIC>sample string 8</requireNRIC>
      <updateDate>2025-01-09T12:16:07.3910459+08:00</updateDate>
    </EventPrice>
    <EventPrice>
      <EventID>sample string 1</EventID>
      <adminID>sample string 9</adminID>
      <classID>sample string 2</classID>
      <createDate>2025-01-09T12:16:07.3910459+08:00</createDate>
      <deleted>sample string 11</deleted>
      <enabled>sample string 10</enabled>
      <price>sample string 5</price>
      <priceCurrency>sample string 6</priceCurrency>
      <priceEndDate>2025-01-09T12:16:07.3910459+08:00</priceEndDate>
      <priceID>sample string 3</priceID>
      <priceStartDate>2025-01-09T12:16:07.3910459+08:00</priceStartDate>
      <priceTitle>sample string 4</priceTitle>
      <requireID>sample string 7</requireID>
      <requireNRIC>sample string 8</requireNRIC>
      <updateDate>2025-01-09T12:16:07.3910459+08:00</updateDate>
    </EventPrice>
    <EventPrice>
      <EventID>sample string 1</EventID>
      <adminID>sample string 9</adminID>
      <classID>sample string 2</classID>
      <createDate>2025-01-09T12:16:07.3910459+08:00</createDate>
      <deleted>sample string 11</deleted>
      <enabled>sample string 10</enabled>
      <price>sample string 5</price>
      <priceCurrency>sample string 6</priceCurrency>
      <priceEndDate>2025-01-09T12:16:07.3910459+08:00</priceEndDate>
      <priceID>sample string 3</priceID>
      <priceStartDate>2025-01-09T12:16:07.3910459+08:00</priceStartDate>
      <priceTitle>sample string 4</priceTitle>
      <requireID>sample string 7</requireID>
      <requireNRIC>sample string 8</requireNRIC>
      <updateDate>2025-01-09T12:16:07.3910459+08:00</updateDate>
    </EventPrice>
  </eventPrice>
  <maxPax>sample string 8</maxPax>
  <registrationEnd>2025-01-09T12:16:07.3910459+08:00</registrationEnd>
  <registrationStart>2025-01-09T12:16:07.3910459+08:00</registrationStart>
  <room>sample string 5</room>
  <sessionID>sample string 3</sessionID>
  <startDate>2025-01-09T12:16:07.3910459+08:00</startDate>
  <status>sample string 10</status>
  <trainer>
    <EventSpeaker>
      <ClassID>sample string 2</ClassID>
      <CreateDate>2025-01-09T12:16:07.3910459+08:00</CreateDate>
      <Designation>sample string 6</Designation>
      <Discipline>sample string 7</Discipline>
      <EventID>sample string 1</EventID>
      <NRIC>sample string 5</NRIC>
      <Name>sample string 4</Name>
      <SpeakerID>sample string 3</SpeakerID>
    </EventSpeaker>
    <EventSpeaker>
      <ClassID>sample string 2</ClassID>
      <CreateDate>2025-01-09T12:16:07.3910459+08:00</CreateDate>
      <Designation>sample string 6</Designation>
      <Discipline>sample string 7</Discipline>
      <EventID>sample string 1</EventID>
      <NRIC>sample string 5</NRIC>
      <Name>sample string 4</Name>
      <SpeakerID>sample string 3</SpeakerID>
    </EventSpeaker>
    <EventSpeaker>
      <ClassID>sample string 2</ClassID>
      <CreateDate>2025-01-09T12:16:07.3910459+08:00</CreateDate>
      <Designation>sample string 6</Designation>
      <Discipline>sample string 7</Discipline>
      <EventID>sample string 1</EventID>
      <NRIC>sample string 5</NRIC>
      <Name>sample string 4</Name>
      <SpeakerID>sample string 3</SpeakerID>
    </EventSpeaker>
  </trainer>
  <venue>sample string 4</venue>
  <venueLat>sample string 6</venueLat>
  <venueLng>sample string 7</venueLng>
</eventClass>

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