POST api/v1/staffpreferences
Save staff preference for the specified staff
Request Information
URI Parameters
None.
Body Parameters
StaffPreferenceRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| StaffPreferenceId | integer |
None. |
|
| StaffId | integer |
None. |
|
| EmployeeName | string |
None. |
|
| DaysOfWeek | Collection of DayOfWeekRequestModel |
None. |
|
| PartsOfDay | Collection of PartOfDayHoursModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"StaffPreferenceId": 1,
"StaffId": 1,
"EmployeeName": "sample string 2",
"DaysOfWeek": [
{
"DayOfWeekId": 1,
"DayOfWeek": "sample string 2",
"Preference": true,
"EffectiveDate": "2026-01-02T21:53:25.6023167-06:00",
"ExpiryDate": "2026-01-02T21:53:25.6023167-06:00"
},
{
"DayOfWeekId": 1,
"DayOfWeek": "sample string 2",
"Preference": true,
"EffectiveDate": "2026-01-02T21:53:25.6023167-06:00",
"ExpiryDate": "2026-01-02T21:53:25.6023167-06:00"
}
],
"PartsOfDay": [
{
"PartOfDayId": 1,
"PartOfDay": "sample string 2",
"StartTime": "sample string 3",
"EndTime": "sample string 4",
"Preference": true,
"EffectiveDate": "2026-01-02T21:53:25.6023167-06:00",
"ExpiryDate": "2026-01-02T21:53:25.6023167-06:00"
},
{
"PartOfDayId": 1,
"PartOfDay": "sample string 2",
"StartTime": "sample string 3",
"EndTime": "sample string 4",
"Preference": true,
"EffectiveDate": "2026-01-02T21:53:25.6023167-06:00",
"ExpiryDate": "2026-01-02T21:53:25.6023167-06:00"
}
]
}
Response Information
Resource Description
ApiResponseModelOfStaffPreferenceRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | ApiResponseDataModelOfStaffPreferenceRequestModel |
None. |
|
| Errors | Collection of string |
None. |
|
| Warnings | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"PageSize": 1,
"Page": 2,
"TotalPages": 3,
"TotalResults": 4,
"Results": {
"StaffPreferenceId": 1,
"StaffId": 1,
"EmployeeName": "sample string 2",
"DaysOfWeek": [
{
"DayOfWeekId": 1,
"DayOfWeek": "sample string 2",
"Preference": true,
"EffectiveDate": "2026-01-02T21:53:25.6023167-06:00",
"ExpiryDate": "2026-01-02T21:53:25.6023167-06:00"
},
{
"DayOfWeekId": 1,
"DayOfWeek": "sample string 2",
"Preference": true,
"EffectiveDate": "2026-01-02T21:53:25.6023167-06:00",
"ExpiryDate": "2026-01-02T21:53:25.6023167-06:00"
}
],
"PartsOfDay": [
{
"PartOfDayId": 1,
"PartOfDay": "sample string 2",
"StartTime": "sample string 3",
"EndTime": "sample string 4",
"Preference": true,
"EffectiveDate": "2026-01-02T21:53:25.6023167-06:00",
"ExpiryDate": "2026-01-02T21:53:25.6023167-06:00"
},
{
"PartOfDayId": 1,
"PartOfDay": "sample string 2",
"StartTime": "sample string 3",
"EndTime": "sample string 4",
"Preference": true,
"EffectiveDate": "2026-01-02T21:53:25.6023167-06:00",
"ExpiryDate": "2026-01-02T21:53:25.6023167-06:00"
}
]
}
},
"Errors": [
"sample string 1",
"sample string 2"
],
"Warnings": [
"sample string 1",
"sample string 2"
]
}