POST api/Admin/DaySchedules
Creates a day schedule
Request Information
URI Parameters
None.
Body Parameters
CreateDayScheduleRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ScheduleId |
Schedule Id. |
integer |
None. |
| CreatedBy |
Created by. |
string |
Required Max length: 255 |
| Id | integer |
None. |
|
| DayOfWeek |
The day of week. |
string |
Required |
| StartTime |
Start time. |
time interval |
Required |
| EndTime |
End time. |
time interval |
Required |
Remarks
None.
Example
None.
Request Formats
application/json, text/json
Sample:
{
"ScheduleId": 1,
"CreatedBy": "sample string 3",
"Id": 4,
"DayOfWeek": "sample string 5",
"StartTime": "00:00",
"EndTime": "00:00"
}
application/xml, text/xml
Sample:
<CreateDayScheduleRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.Calendar.Service.DTO"> <DayOfWeek>sample string 5</DayOfWeek> <EndTime>PT0.1234567S</EndTime> <Id>4</Id> <StartTime>PT0.1234567S</StartTime> <CreatedBy>sample string 3</CreatedBy> <ScheduleId>1</ScheduleId> </CreateDayScheduleRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Id of the created dayschedule
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.