POST api/BookingFavourites
Request Information
URI Parameters
None.
Body Parameters
BookingFavouritesResourceName | Description | Type | Additional information |
---|---|---|---|
Identity | globally unique identifier |
None. |
|
Rank | integer |
None. |
|
BookingType | NamedObject |
None. |
|
ResourceType | NamedObject |
None. |
|
ResourceGroup | NamedObject |
None. |
|
Resource | NamedObject |
None. |
Request Formats
application/json, text/json
Sample:
{ "Identity": "eb52fad7-c943-41df-a773-777a22a72041", "Rank": 2, "BookingType": { "Identity": "8eb57f56-dedc-4a7c-bd96-f0fa6e672899", "Name": "sample string 2" }, "ResourceType": { "Identity": "8eb57f56-dedc-4a7c-bd96-f0fa6e672899", "Name": "sample string 2" }, "ResourceGroup": { "Identity": "8eb57f56-dedc-4a7c-bd96-f0fa6e672899", "Name": "sample string 2" }, "Resource": { "Identity": "8eb57f56-dedc-4a7c-bd96-f0fa6e672899", "Name": "sample string 2" } }
application/xml, text/xml
Sample:
<BookingFavouritesResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.API.Model"> <BookingType xmlns:d2p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d2p1:Identity>8eb57f56-dedc-4a7c-bd96-f0fa6e672899</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </BookingType> <Identity>eb52fad7-c943-41df-a773-777a22a72041</Identity> <Rank>2</Rank> <Resource xmlns:d2p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d2p1:Identity>8eb57f56-dedc-4a7c-bd96-f0fa6e672899</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </Resource> <ResourceGroup xmlns:d2p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d2p1:Identity>8eb57f56-dedc-4a7c-bd96-f0fa6e672899</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </ResourceGroup> <ResourceType xmlns:d2p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d2p1:Identity>8eb57f56-dedc-4a7c-bd96-f0fa6e672899</d2p1:Identity> <d2p1:Name>sample string 2</d2p1:Name> </ResourceType> </BookingFavouritesResource>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BookingFavouritesName | Description | Type | Additional information |
---|---|---|---|
Identity | globally unique identifier |
None. |
|
NameIdentifier | string |
None. |
|
Favourites | Collection of BookingFavouritesResource |
None. |
Response Formats
application/json, text/json
Sample:
{ "Identity": "f31e29b3-3e28-4e2b-a2eb-85430b283b54", "NameIdentifier": "sample string 2", "Favourites": [ { "Identity": "53cf21a5-7f0a-4ada-84c5-cbff913407be", "Rank": 2, "BookingType": { "Identity": "b814be2f-a172-41d9-9a06-665c3c3b69d5", "Name": "sample string 2" }, "ResourceType": { "Identity": "b814be2f-a172-41d9-9a06-665c3c3b69d5", "Name": "sample string 2" }, "ResourceGroup": { "Identity": "b814be2f-a172-41d9-9a06-665c3c3b69d5", "Name": "sample string 2" }, "Resource": { "Identity": "b814be2f-a172-41d9-9a06-665c3c3b69d5", "Name": "sample string 2" } }, { "Identity": "53cf21a5-7f0a-4ada-84c5-cbff913407be", "Rank": 2, "BookingType": { "Identity": "b814be2f-a172-41d9-9a06-665c3c3b69d5", "Name": "sample string 2" }, "ResourceType": { "Identity": "b814be2f-a172-41d9-9a06-665c3c3b69d5", "Name": "sample string 2" }, "ResourceGroup": { "Identity": "b814be2f-a172-41d9-9a06-665c3c3b69d5", "Name": "sample string 2" }, "Resource": { "Identity": "b814be2f-a172-41d9-9a06-665c3c3b69d5", "Name": "sample string 2" } } ] }
application/xml, text/xml
Sample:
<BookingFavourites xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.API.Model"> <Favourites> <BookingFavouritesResource> <BookingType xmlns:d4p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d4p1:Identity>b814be2f-a172-41d9-9a06-665c3c3b69d5</d4p1:Identity> <d4p1:Name>sample string 2</d4p1:Name> </BookingType> <Identity>53cf21a5-7f0a-4ada-84c5-cbff913407be</Identity> <Rank>2</Rank> <Resource xmlns:d4p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d4p1:Identity>b814be2f-a172-41d9-9a06-665c3c3b69d5</d4p1:Identity> <d4p1:Name>sample string 2</d4p1:Name> </Resource> <ResourceGroup xmlns:d4p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d4p1:Identity>b814be2f-a172-41d9-9a06-665c3c3b69d5</d4p1:Identity> <d4p1:Name>sample string 2</d4p1:Name> </ResourceGroup> <ResourceType xmlns:d4p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d4p1:Identity>b814be2f-a172-41d9-9a06-665c3c3b69d5</d4p1:Identity> <d4p1:Name>sample string 2</d4p1:Name> </ResourceType> </BookingFavouritesResource> <BookingFavouritesResource> <BookingType xmlns:d4p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d4p1:Identity>b814be2f-a172-41d9-9a06-665c3c3b69d5</d4p1:Identity> <d4p1:Name>sample string 2</d4p1:Name> </BookingType> <Identity>53cf21a5-7f0a-4ada-84c5-cbff913407be</Identity> <Rank>2</Rank> <Resource xmlns:d4p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d4p1:Identity>b814be2f-a172-41d9-9a06-665c3c3b69d5</d4p1:Identity> <d4p1:Name>sample string 2</d4p1:Name> </Resource> <ResourceGroup xmlns:d4p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d4p1:Identity>b814be2f-a172-41d9-9a06-665c3c3b69d5</d4p1:Identity> <d4p1:Name>sample string 2</d4p1:Name> </ResourceGroup> <ResourceType xmlns:d4p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d4p1:Identity>b814be2f-a172-41d9-9a06-665c3c3b69d5</d4p1:Identity> <d4p1:Name>sample string 2</d4p1:Name> </ResourceType> </BookingFavouritesResource> </Favourites> <Identity>f31e29b3-3e28-4e2b-a2eb-85430b283b54</Identity> <NameIdentifier>sample string 2</NameIdentifier> </BookingFavourites>