POST api/BookingTypes
Request Information
URI Parameters
None.
Body Parameters
BookingTypeName | Description | Type | Additional information |
---|---|---|---|
BookingForm | NamedObject |
None. |
|
BasePermissionGroups | Collection of NamedObject |
None. |
|
BoboPermissionGroups | Collection of NamedObject |
None. |
|
Description | string |
None. |
|
ResourceRestrictionRules | Collection of ResourceRequirementTemplate |
None. |
|
ImageUri | URI |
None. |
|
CanEdit | boolean |
None. |
|
CanBookOnBehalfOf | boolean |
None. |
|
CanBookAsSomeoneElse | boolean |
None. |
|
HasExternallyManagedResources | boolean |
None. |
|
ReadPermissionGroups | Collection of NamedObject |
None. |
|
WritePermissionGroups | Collection of NamedObject |
None. |
|
Identity | globally unique identifier |
None. |
|
Name | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "BookingForm": { "Identity": "3985c16e-94f0-44f4-be89-f4eec26e69e6", "Name": "sample string 2" }, "BasePermissionGroups": [ { "Identity": "3985c16e-94f0-44f4-be89-f4eec26e69e6", "Name": "sample string 2" }, { "Identity": "3985c16e-94f0-44f4-be89-f4eec26e69e6", "Name": "sample string 2" } ], "BoboPermissionGroups": [ { "Identity": "3985c16e-94f0-44f4-be89-f4eec26e69e6", "Name": "sample string 2" }, { "Identity": "3985c16e-94f0-44f4-be89-f4eec26e69e6", "Name": "sample string 2" } ], "Description": "sample string 1", "ResourceRestrictionRules": [ { "Name": "sample string 1", "Identity": "40a551d7-228b-4a66-ae6b-1882c668648b", "ResourceType": { "Identity": "3985c16e-94f0-44f4-be89-f4eec26e69e6", "Name": "sample string 2" }, "Min": 3, "Max": 4, "ResourceGroups": [ { "Identity": "3985c16e-94f0-44f4-be89-f4eec26e69e6", "Name": "sample string 2" }, { "Identity": "3985c16e-94f0-44f4-be89-f4eec26e69e6", "Name": "sample string 2" } ], "AllowResourceSelection": true, "IsPrimary": true }, { "Name": "sample string 1", "Identity": "40a551d7-228b-4a66-ae6b-1882c668648b", "ResourceType": { "Identity": "3985c16e-94f0-44f4-be89-f4eec26e69e6", "Name": "sample string 2" }, "Min": 3, "Max": 4, "ResourceGroups": [ { "Identity": "3985c16e-94f0-44f4-be89-f4eec26e69e6", "Name": "sample string 2" }, { "Identity": "3985c16e-94f0-44f4-be89-f4eec26e69e6", "Name": "sample string 2" } ], "AllowResourceSelection": true, "IsPrimary": true } ], "ImageUri": "http://webapihelppage2.com", "CanEdit": true, "CanBookOnBehalfOf": true, "CanBookAsSomeoneElse": true, "HasExternallyManagedResources": true, "ReadPermissionGroups": [ { "Identity": "3985c16e-94f0-44f4-be89-f4eec26e69e6", "Name": "sample string 2" }, { "Identity": "3985c16e-94f0-44f4-be89-f4eec26e69e6", "Name": "sample string 2" } ], "WritePermissionGroups": [ { "Identity": "3985c16e-94f0-44f4-be89-f4eec26e69e6", "Name": "sample string 2" }, { "Identity": "3985c16e-94f0-44f4-be89-f4eec26e69e6", "Name": "sample string 2" } ], "Identity": "e26ad3b8-9e63-43a4-9e18-91ec0a4b1c78", "Name": "sample string 7" }
application/xml, text/xml
Sample:
<BookingType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.API.Model"> <Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">e26ad3b8-9e63-43a4-9e18-91ec0a4b1c78</Identity> <Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 7</Name> <ReadPermissionGroups xmlns:d2p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d2p1:NamedObject> <d2p1:Identity>3985c16e-94f0-44f4-be89-f4eec26e69e6</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:NamedObject> <d2p1:NamedObject> <d2p1:Identity>3985c16e-94f0-44f4-be89-f4eec26e69e6</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:NamedObject> </ReadPermissionGroups> <WritePermissionGroups xmlns:d2p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d2p1:NamedObject> <d2p1:Identity>3985c16e-94f0-44f4-be89-f4eec26e69e6</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:NamedObject> <d2p1:NamedObject> <d2p1:Identity>3985c16e-94f0-44f4-be89-f4eec26e69e6</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:NamedObject> </WritePermissionGroups> <BasePermissionGroups xmlns:d2p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d2p1:NamedObject> <d2p1:Identity>3985c16e-94f0-44f4-be89-f4eec26e69e6</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:NamedObject> <d2p1:NamedObject> <d2p1:Identity>3985c16e-94f0-44f4-be89-f4eec26e69e6</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:NamedObject> </BasePermissionGroups> <BoboPermissionGroups xmlns:d2p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d2p1:NamedObject> <d2p1:Identity>3985c16e-94f0-44f4-be89-f4eec26e69e6</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:NamedObject> <d2p1:NamedObject> <d2p1:Identity>3985c16e-94f0-44f4-be89-f4eec26e69e6</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:NamedObject> </BoboPermissionGroups> <BookingForm xmlns:d2p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d2p1:Identity>3985c16e-94f0-44f4-be89-f4eec26e69e6</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </BookingForm> <CanBookAsSomeoneElse>true</CanBookAsSomeoneElse> <CanBookOnBehalfOf>true</CanBookOnBehalfOf> <CanEdit>true</CanEdit> <Description>sample string 1</Description> <HasExternallyManagedResources>true</HasExternallyManagedResources> <ImageUri>http://webapihelppage2.com/</ImageUri> <ResourceRestrictionRules> <ResourceRequirementTemplate> <AllowResourceSelection>true</AllowResourceSelection> <Identity>40a551d7-228b-4a66-ae6b-1882c668648b</Identity> <IsPrimary>true</IsPrimary> <Max>4</Max> <Min>3</Min> <Name>sample string 1</Name> <ResourceGroups xmlns:d4p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d4p1:NamedObject> <d4p1:Identity>3985c16e-94f0-44f4-be89-f4eec26e69e6</d4p1:Identity> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:NamedObject> <d4p1:NamedObject> <d4p1:Identity>3985c16e-94f0-44f4-be89-f4eec26e69e6</d4p1:Identity> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:NamedObject> </ResourceGroups> <ResourceType xmlns:d4p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d4p1:Identity>3985c16e-94f0-44f4-be89-f4eec26e69e6</d4p1:Identity> <d4p1:Name>sample string 2</d4p1:Name> </ResourceType> </ResourceRequirementTemplate> <ResourceRequirementTemplate> <AllowResourceSelection>true</AllowResourceSelection> <Identity>40a551d7-228b-4a66-ae6b-1882c668648b</Identity> <IsPrimary>true</IsPrimary> <Max>4</Max> <Min>3</Min> <Name>sample string 1</Name> <ResourceGroups xmlns:d4p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d4p1:NamedObject> <d4p1:Identity>3985c16e-94f0-44f4-be89-f4eec26e69e6</d4p1:Identity> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:NamedObject> <d4p1:NamedObject> <d4p1:Identity>3985c16e-94f0-44f4-be89-f4eec26e69e6</d4p1:Identity> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:NamedObject> </ResourceGroups> <ResourceType xmlns:d4p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d4p1:Identity>3985c16e-94f0-44f4-be89-f4eec26e69e6</d4p1:Identity> <d4p1:Name>sample string 2</d4p1:Name> </ResourceType> </ResourceRequirementTemplate> </ResourceRestrictionRules> </BookingType>
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. |