POST api/shift/insert
Request Information
URI Parameters
None.
Body Parameters
InsertShiftRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ShiftID | integer |
None. |
|
| BranchID | integer |
None. |
|
| Name | string |
None. |
|
| StartingTime | date |
None. |
|
| ClosingTime | date |
None. |
|
| Remarks | string |
None. |
|
| UserID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ShiftID": 1,
"BranchID": 2,
"Name": "sample string 3",
"StartingTime": "2026-10-15T11:11:21.4295661-07:00",
"ClosingTime": "2026-10-15T11:11:21.4295661-07:00",
"Remarks": "sample string 6",
"UserID": 7
}
application/xml, text/xml
Sample:
<InsertShiftRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers"> <BranchID>2</BranchID> <ClosingTime>2026-10-15T11:11:21.4295661-07:00</ClosingTime> <Name>sample string 3</Name> <Remarks>sample string 6</Remarks> <ShiftID>1</ShiftID> <StartingTime>2026-10-15T11:11:21.4295661-07:00</StartingTime> <UserID>7</UserID> </InsertShiftRequestModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.