POST api/advisor/advisorsettings/set-working-hours
Request Information
URI Parameters
None.
Body Parameters
SetWorkingHoursViewModelName | Description | Type | Additional information |
---|---|---|---|
NotAvailable | boolean |
None. |
|
SelectedDates | Collection of SelectedDates |
None. |
|
WorkingHours | Collection of WorkingHoursModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "NotAvailable": true, "SelectedDates": [ { "SelectedDate": "2025-04-04T02:21:08.7375365+00:00", "HasMeeting": true, "ExistingTimes": [ { "m_Item1": "sample string 1", "m_Item2": "sample string 2" }, { "m_Item1": "sample string 1", "m_Item2": "sample string 2" } ] }, { "SelectedDate": "2025-04-04T02:21:08.7375365+00:00", "HasMeeting": true, "ExistingTimes": [ { "m_Item1": "sample string 1", "m_Item2": "sample string 2" }, { "m_Item1": "sample string 1", "m_Item2": "sample string 2" } ] } ], "WorkingHours": [ { "From": "sample string 1", "To": "sample string 2" }, { "From": "sample string 1", "To": "sample string 2" } ] }
application/xml, text/xml
Sample:
<SetWorkingHoursViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Co.Kes.Data.ViewModels.CoKes.Settings"> <NotAvailable>true</NotAvailable> <SelectedDates> <SelectedDates> <ExistingTimes xmlns:d4p1="http://schemas.datacontract.org/2004/07/System"> <d4p1:TupleOfstringstring> <d4p1:m_Item1>sample string 1</d4p1:m_Item1> <d4p1:m_Item2>sample string 2</d4p1:m_Item2> </d4p1:TupleOfstringstring> <d4p1:TupleOfstringstring> <d4p1:m_Item1>sample string 1</d4p1:m_Item1> <d4p1:m_Item2>sample string 2</d4p1:m_Item2> </d4p1:TupleOfstringstring> </ExistingTimes> <HasMeeting>true</HasMeeting> <SelectedDate>2025-04-04T02:21:08.7375365+00:00</SelectedDate> </SelectedDates> <SelectedDates> <ExistingTimes xmlns:d4p1="http://schemas.datacontract.org/2004/07/System"> <d4p1:TupleOfstringstring> <d4p1:m_Item1>sample string 1</d4p1:m_Item1> <d4p1:m_Item2>sample string 2</d4p1:m_Item2> </d4p1:TupleOfstringstring> <d4p1:TupleOfstringstring> <d4p1:m_Item1>sample string 1</d4p1:m_Item1> <d4p1:m_Item2>sample string 2</d4p1:m_Item2> </d4p1:TupleOfstringstring> </ExistingTimes> <HasMeeting>true</HasMeeting> <SelectedDate>2025-04-04T02:21:08.7375365+00:00</SelectedDate> </SelectedDates> </SelectedDates> <WorkingHours> <WorkingHoursModel> <From>sample string 1</From> <To>sample string 2</To> </WorkingHoursModel> <WorkingHoursModel> <From>sample string 1</From> <To>sample string 2</To> </WorkingHoursModel> </WorkingHours> </SetWorkingHoursViewModel>
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.