POST api/school/calendar/save-event
Request Information
URI Parameters
None.
Body Parameters
SchoolCalendarEventDto| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| School_Id | integer |
None. |
|
| title | string |
None. |
|
| eventDate | string |
None. |
|
| endDate | string |
None. |
|
| time | string |
None. |
|
| description | string |
None. |
|
| location | string |
None. |
|
| classIds | Collection of integer |
None. |
|
| ClassIds | Collection of integer |
None. |
|
| isHoliday | boolean |
None. |
|
| Year_Id | integer |
None. |
|
| YearId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"School_Id": 1,
"title": "sample string 2",
"eventDate": "sample string 3",
"endDate": "sample string 4",
"time": "sample string 5",
"description": "sample string 6",
"location": "sample string 7",
"classIds": [
1,
2
],
"ClassIds": [
1,
2
],
"isHoliday": true,
"Year_Id": 9,
"YearId": 10
}
application/xml, text/xml
Sample:
<SchoolCalendarEventDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoapToRestAPI.Controllers">
<ClassIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</ClassIds>
<School_Id>1</School_Id>
<YearId>10</YearId>
<Year_Id>9</Year_Id>
<classIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</classIds>
<description>sample string 6</description>
<endDate>sample string 4</endDate>
<eventDate>sample string 3</eventDate>
<id>1</id>
<isHoliday>true</isHoliday>
<location>sample string 7</location>
<time>sample string 5</time>
<title>sample string 2</title>
</SchoolCalendarEventDto>
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.