PUT api/ResourceTypes/{resourceTypeIdentity}/Resources/{resourceIdentity}/AddBusyPattern2
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
resourceTypeIdentity | string |
Required |
|
resourceIdentity | string |
Required |
Body Parameters
Collection of BusyPatternModelName | Description | Type | Additional information |
---|---|---|---|
DateRanges | Collection of BusyDateRange |
None. |
|
Days | Collection of DayOfWeek |
None. |
|
TimeRanges | Collection of BusyTimeRange |
None. |
Request Formats
application/json, text/json
Sample:
[ { "DateRanges": [ { "StartDate": "2025-03-31T22:52:39.343429+00:00", "EndDate": "2025-03-31T22:52:39.343429+00:00" }, { "StartDate": "2025-03-31T22:52:39.343429+00:00", "EndDate": "2025-03-31T22:52:39.343429+00:00" } ], "Days": [ 0, 0 ], "TimeRanges": [ { "StartTime": "00:00:00.1234567", "Duration": 2.1 }, { "StartTime": "00:00:00.1234567", "Duration": 2.1 } ] }, { "DateRanges": [ { "StartDate": "2025-03-31T22:52:39.343429+00:00", "EndDate": "2025-03-31T22:52:39.343429+00:00" }, { "StartDate": "2025-03-31T22:52:39.343429+00:00", "EndDate": "2025-03-31T22:52:39.343429+00:00" } ], "Days": [ 0, 0 ], "TimeRanges": [ { "StartTime": "00:00:00.1234567", "Duration": 2.1 }, { "StartTime": "00:00:00.1234567", "Duration": 2.1 } ] } ]
application/xml, text/xml
Sample:
<ArrayOfBusyPatternModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.API.Controllers"> <BusyPatternModel> <DateRanges> <BusyDateRange> <EndDate>2025-03-31T22:52:39.343429+00:00</EndDate> <StartDate>2025-03-31T22:52:39.343429+00:00</StartDate> </BusyDateRange> <BusyDateRange> <EndDate>2025-03-31T22:52:39.343429+00:00</EndDate> <StartDate>2025-03-31T22:52:39.343429+00:00</StartDate> </BusyDateRange> </DateRanges> <Days xmlns:d3p1="http://schemas.datacontract.org/2004/07/System"> <d3p1:DayOfWeek>Sunday</d3p1:DayOfWeek> <d3p1:DayOfWeek>Sunday</d3p1:DayOfWeek> </Days> <TimeRanges> <BusyTimeRange> <Duration>2.1</Duration> <StartTime>PT0.1234567S</StartTime> </BusyTimeRange> <BusyTimeRange> <Duration>2.1</Duration> <StartTime>PT0.1234567S</StartTime> </BusyTimeRange> </TimeRanges> </BusyPatternModel> <BusyPatternModel> <DateRanges> <BusyDateRange> <EndDate>2025-03-31T22:52:39.343429+00:00</EndDate> <StartDate>2025-03-31T22:52:39.343429+00:00</StartDate> </BusyDateRange> <BusyDateRange> <EndDate>2025-03-31T22:52:39.343429+00:00</EndDate> <StartDate>2025-03-31T22:52:39.343429+00:00</StartDate> </BusyDateRange> </DateRanges> <Days xmlns:d3p1="http://schemas.datacontract.org/2004/07/System"> <d3p1:DayOfWeek>Sunday</d3p1:DayOfWeek> <d3p1:DayOfWeek>Sunday</d3p1:DayOfWeek> </Days> <TimeRanges> <BusyTimeRange> <Duration>2.1</Duration> <StartTime>PT0.1234567S</StartTime> </BusyTimeRange> <BusyTimeRange> <Duration>2.1</Duration> <StartTime>PT0.1234567S</StartTime> </BusyTimeRange> </TimeRanges> </BusyPatternModel> </ArrayOfBusyPatternModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |