PUT api/ResourceTypes/{resourceTypeIdentity}/Resources/{resourceIdentity}/AddBusyPattern
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
resourceTypeIdentity | string |
Required |
|
resourceIdentity | string |
Required |
Body Parameters
BusyPatternName | Description | Type | Additional information |
---|---|---|---|
UniqueIdentity | globally unique identifier |
None. |
|
StartDateTime | date |
None. |
|
EndDateTime | date |
None. |
|
Duration | decimal number |
None. |
|
Days | Collection of DayOfWeek |
None. |
|
Repeat | boolean |
None. |
|
IsException | boolean |
None. |
|
DstDifference | time interval |
None. |
|
DayOffset | integer |
None. |
|
Identity | globally unique identifier |
None. |
|
AvailabilityType | AvailabilityType |
None. |
|
EntityType | AvailabilityEntityType |
None. |
|
OffsetAtCreation | time interval |
None. |
|
RepeatStartLocal | time interval |
None. |
|
RepeatEndLocal | time interval |
None. |
|
Name | string |
None. |
|
IsLinkedPattern | boolean |
None. |
|
LinkedEntities | Collection of globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "UniqueIdentity": "8de3ad0c-7bd6-487c-99f8-32782d0bef4e", "StartDateTime": "2025-04-03T22:46:50.8325803+00:00", "EndDateTime": "2025-04-03T22:46:50.8325803+00:00", "Duration": 4.1, "Days": [ 0, 0 ], "Repeat": true, "IsException": true, "DstDifference": "00:00:00.1234567", "DayOffset": 8, "Identity": "e3f66f13-10ab-4081-ad0b-a0ab39d3b574", "AvailabilityType": 0, "EntityType": 0, "OffsetAtCreation": "00:00:00.1234567", "RepeatStartLocal": "00:00:00.1234567", "RepeatEndLocal": "00:00:00.1234567", "Name": "sample string 13", "IsLinkedPattern": true, "LinkedEntities": [ "9c5fd980-2f99-4796-aed9-5ae3bdfd4e2e", "598c7d18-4884-406f-a438-5f81277ec465" ] }
application/xml, text/xml
Sample:
<BusyPattern xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.API.Model"> <AvailabilityType>Specific</AvailabilityType> <DayOffset>8</DayOffset> <Days xmlns:d2p1="http://schemas.datacontract.org/2004/07/System"> <d2p1:DayOfWeek>Sunday</d2p1:DayOfWeek> <d2p1:DayOfWeek>Sunday</d2p1:DayOfWeek> </Days> <DstDifference>PT0.1234567S</DstDifference> <Duration>4.1</Duration> <EndDateTime xmlns:d2p1="http://schemas.datacontract.org/2004/07/System"> <d2p1:DateTime>2025-04-03T22:46:50.8325803Z</d2p1:DateTime> <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes> </EndDateTime> <EntityType>Resource</EntityType> <Identity>e3f66f13-10ab-4081-ad0b-a0ab39d3b574</Identity> <IsException>true</IsException> <IsLinkedPattern>true</IsLinkedPattern> <LinkedEntities xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>9c5fd980-2f99-4796-aed9-5ae3bdfd4e2e</d2p1:guid> <d2p1:guid>598c7d18-4884-406f-a438-5f81277ec465</d2p1:guid> </LinkedEntities> <Name>sample string 13</Name> <OffsetAtCreation>PT0.1234567S</OffsetAtCreation> <Repeat>true</Repeat> <RepeatEndLocal>PT0.1234567S</RepeatEndLocal> <RepeatStartLocal>PT0.1234567S</RepeatStartLocal> <StartDateTime xmlns:d2p1="http://schemas.datacontract.org/2004/07/System"> <d2p1:DateTime>2025-04-03T22:46:50.8325803Z</d2p1:DateTime> <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes> </StartDateTime> <UniqueIdentity>8de3ad0c-7bd6-487c-99f8-32782d0bef4e</UniqueIdentity> </BusyPattern>
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. |