POST api/BookingFavourites

Request Information

URI Parameters

None.

Body Parameters

BookingFavouritesResource
NameDescriptionTypeAdditional 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": "274e0b39-a59a-4247-8260-d1b8dfa4e153",
  "Rank": 2,
  "BookingType": {
    "Identity": "307fce91-fd52-4c04-b3bd-5a0c34e9c301",
    "Name": "sample string 2"
  },
  "ResourceType": {
    "Identity": "307fce91-fd52-4c04-b3bd-5a0c34e9c301",
    "Name": "sample string 2"
  },
  "ResourceGroup": {
    "Identity": "307fce91-fd52-4c04-b3bd-5a0c34e9c301",
    "Name": "sample string 2"
  },
  "Resource": {
    "Identity": "307fce91-fd52-4c04-b3bd-5a0c34e9c301",
    "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>307fce91-fd52-4c04-b3bd-5a0c34e9c301</d2p1:Identity>
    <d2p1:Name>sample string 2</d2p1:Name>
  </BookingType>
  <Identity>274e0b39-a59a-4247-8260-d1b8dfa4e153</Identity>
  <Rank>2</Rank>
  <Resource xmlns:d2p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">
    <d2p1:Identity>307fce91-fd52-4c04-b3bd-5a0c34e9c301</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>307fce91-fd52-4c04-b3bd-5a0c34e9c301</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>307fce91-fd52-4c04-b3bd-5a0c34e9c301</d2p1:Identity>
    <d2p1:Name>sample string 2</d2p1:Name>
  </ResourceType>
</BookingFavouritesResource>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BookingFavourites
NameDescriptionTypeAdditional information
Identity

globally unique identifier

None.

NameIdentifier

string

None.

Favourites

Collection of BookingFavouritesResource

None.

Response Formats

application/json, text/json

Sample:
{
  "Identity": "00de7f75-9b0d-4795-ae67-0e4bd132dcc9",
  "NameIdentifier": "sample string 2",
  "Favourites": [
    {
      "Identity": "ae784a9d-8157-4bfd-8ffb-ac6d88425750",
      "Rank": 2,
      "BookingType": {
        "Identity": "3ad6eb52-86f1-472f-bc5c-17995f5aad67",
        "Name": "sample string 2"
      },
      "ResourceType": {
        "Identity": "3ad6eb52-86f1-472f-bc5c-17995f5aad67",
        "Name": "sample string 2"
      },
      "ResourceGroup": {
        "Identity": "3ad6eb52-86f1-472f-bc5c-17995f5aad67",
        "Name": "sample string 2"
      },
      "Resource": {
        "Identity": "3ad6eb52-86f1-472f-bc5c-17995f5aad67",
        "Name": "sample string 2"
      }
    },
    {
      "Identity": "ae784a9d-8157-4bfd-8ffb-ac6d88425750",
      "Rank": 2,
      "BookingType": {
        "Identity": "3ad6eb52-86f1-472f-bc5c-17995f5aad67",
        "Name": "sample string 2"
      },
      "ResourceType": {
        "Identity": "3ad6eb52-86f1-472f-bc5c-17995f5aad67",
        "Name": "sample string 2"
      },
      "ResourceGroup": {
        "Identity": "3ad6eb52-86f1-472f-bc5c-17995f5aad67",
        "Name": "sample string 2"
      },
      "Resource": {
        "Identity": "3ad6eb52-86f1-472f-bc5c-17995f5aad67",
        "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>3ad6eb52-86f1-472f-bc5c-17995f5aad67</d4p1:Identity>
        <d4p1:Name>sample string 2</d4p1:Name>
      </BookingType>
      <Identity>ae784a9d-8157-4bfd-8ffb-ac6d88425750</Identity>
      <Rank>2</Rank>
      <Resource xmlns:d4p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">
        <d4p1:Identity>3ad6eb52-86f1-472f-bc5c-17995f5aad67</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>3ad6eb52-86f1-472f-bc5c-17995f5aad67</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>3ad6eb52-86f1-472f-bc5c-17995f5aad67</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>3ad6eb52-86f1-472f-bc5c-17995f5aad67</d4p1:Identity>
        <d4p1:Name>sample string 2</d4p1:Name>
      </BookingType>
      <Identity>ae784a9d-8157-4bfd-8ffb-ac6d88425750</Identity>
      <Rank>2</Rank>
      <Resource xmlns:d4p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">
        <d4p1:Identity>3ad6eb52-86f1-472f-bc5c-17995f5aad67</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>3ad6eb52-86f1-472f-bc5c-17995f5aad67</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>3ad6eb52-86f1-472f-bc5c-17995f5aad67</d4p1:Identity>
        <d4p1:Name>sample string 2</d4p1:Name>
      </ResourceType>
    </BookingFavouritesResource>
  </Favourites>
  <Identity>00de7f75-9b0d-4795-ae67-0e4bd132dcc9</Identity>
  <NameIdentifier>sample string 2</NameIdentifier>
</BookingFavourites>