POST api/Staff_Shift_Mapping/Create

Request Information

URI Parameters

None.

Body Parameters

Collection of Staff_Shift_MappingModel
NameDescriptionTypeAdditional information
ID

integer

None.

RecurringID

integer

None.

ShiftID

integer

None.

ShiftName

string

None.

ShiftColor

string

None.

StaffEmail

string

None.

StaffID

integer

None.

StaffName

string

None.

StartDate

date

None.

EndDate

date

None.

StartTime

string

None.

EndTime

string

None.

IsDelete

boolean

None.

CreatedDate

date

None.

CreatedBy

integer

None.

UpdatedDate

date

None.

UpdatedBy

integer

None.

OperationOption

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "RecurringID": 1,
    "ShiftID": 1,
    "ShiftName": "sample string 2",
    "ShiftColor": "sample string 3",
    "StaffEmail": "sample string 4",
    "StaffID": 1,
    "StaffName": "sample string 5",
    "StartDate": "2026-06-30T14:15:05.7719646+01:00",
    "EndDate": "2026-06-30T14:15:05.7719646+01:00",
    "StartTime": "sample string 6",
    "EndTime": "sample string 7",
    "IsDelete": true,
    "CreatedDate": "2026-06-30T14:15:05.7726694+01:00",
    "CreatedBy": 1,
    "UpdatedDate": "2026-06-30T14:15:05.7726694+01:00",
    "UpdatedBy": 1,
    "OperationOption": "sample string 8"
  },
  {
    "ID": 1,
    "RecurringID": 1,
    "ShiftID": 1,
    "ShiftName": "sample string 2",
    "ShiftColor": "sample string 3",
    "StaffEmail": "sample string 4",
    "StaffID": 1,
    "StaffName": "sample string 5",
    "StartDate": "2026-06-30T14:15:05.7719646+01:00",
    "EndDate": "2026-06-30T14:15:05.7719646+01:00",
    "StartTime": "sample string 6",
    "EndTime": "sample string 7",
    "IsDelete": true,
    "CreatedDate": "2026-06-30T14:15:05.7726694+01:00",
    "CreatedBy": 1,
    "UpdatedDate": "2026-06-30T14:15:05.7726694+01:00",
    "UpdatedBy": 1,
    "OperationOption": "sample string 8"
  }
]

text/xml

Sample:
<ArrayOfStaff_Shift_MappingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities.Models">
  <Staff_Shift_MappingModel>
    <CreatedBy>1</CreatedBy>
    <CreatedDate>2026-06-30T14:15:05.7726694+01:00</CreatedDate>
    <EndDate>2026-06-30T14:15:05.7719646+01:00</EndDate>
    <EndTime>sample string 7</EndTime>
    <ID>1</ID>
    <IsDelete>true</IsDelete>
    <OperationOption>sample string 8</OperationOption>
    <RecurringID>1</RecurringID>
    <ShiftColor>sample string 3</ShiftColor>
    <ShiftID>1</ShiftID>
    <ShiftName>sample string 2</ShiftName>
    <StaffEmail>sample string 4</StaffEmail>
    <StaffID>1</StaffID>
    <StaffName>sample string 5</StaffName>
    <StartDate>2026-06-30T14:15:05.7719646+01:00</StartDate>
    <StartTime>sample string 6</StartTime>
    <UpdatedBy>1</UpdatedBy>
    <UpdatedDate>2026-06-30T14:15:05.7726694+01:00</UpdatedDate>
  </Staff_Shift_MappingModel>
  <Staff_Shift_MappingModel>
    <CreatedBy>1</CreatedBy>
    <CreatedDate>2026-06-30T14:15:05.7726694+01:00</CreatedDate>
    <EndDate>2026-06-30T14:15:05.7719646+01:00</EndDate>
    <EndTime>sample string 7</EndTime>
    <ID>1</ID>
    <IsDelete>true</IsDelete>
    <OperationOption>sample string 8</OperationOption>
    <RecurringID>1</RecurringID>
    <ShiftColor>sample string 3</ShiftColor>
    <ShiftID>1</ShiftID>
    <ShiftName>sample string 2</ShiftName>
    <StaffEmail>sample string 4</StaffEmail>
    <StaffID>1</StaffID>
    <StaffName>sample string 5</StaffName>
    <StartDate>2026-06-30T14:15:05.7719646+01:00</StartDate>
    <StartTime>sample string 6</StartTime>
    <UpdatedBy>1</UpdatedBy>
    <UpdatedDate>2026-06-30T14:15:05.7726694+01:00</UpdatedDate>
  </Staff_Shift_MappingModel>
</ArrayOfStaff_Shift_MappingModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>