POST api/playbooking

Creates a new booking filter request and returns a collection of play bookings that match the specified criteria.

Request Information

URI Parameters

None.

Body Parameters

PlayBookingRequestModel
NameDescriptionTypeAdditional information
BookingTypeIds

Collection of integer

None.

TeacherIds

Collection of integer

None.

RoomIds

Collection of integer

None.

CourseSchoolIds

Collection of integer

None.

BookingId

integer

None.

DateFrom

date

None.

Request Formats

application/json, text/json

Sample:
{
  "BookingTypeIds": [
    1,
    2
  ],
  "TeacherIds": [
    1,
    2
  ],
  "RoomIds": [
    1,
    2
  ],
  "CourseSchoolIds": [
    1,
    2
  ],
  "BookingId": 1,
  "DateFrom": "2026-03-10T23:19:08.8254185+01:00"
}

application/xml, text/xml

Sample:
<PlayBookingRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpeedadminApi.ViewModels">
  <BookingId>1</BookingId>
  <BookingTypeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </BookingTypeIds>
  <CourseSchoolIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </CourseSchoolIds>
  <DateFrom>2026-03-10T23:19:08.8254185+01:00</DateFrom>
  <RoomIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </RoomIds>
  <TeacherIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </TeacherIds>
</PlayBookingRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of PlayBookingViewModel
NameDescriptionTypeAdditional information
BookingId

integer

None.

BookingTypeId

integer

None.

BookingTypeType

integer

None.

SchoolName

string

None.

Title

string

None.

Description

string

None.

IsEnsemble

boolean

None.

CourseName

string

None.

BookingTypeColor

string

None.

NextTimeSlotDate

date

None.

Attributes

Collection of IAttribute

None.

TeacherAndRoomOnNextTimeSlot

Collection of PlayBookingTimeSlotViewModel

None.

TimeSlots

Collection of PlayBookingDatesViewModel

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "BookingId": 1,
    "BookingTypeId": 2,
    "BookingTypeType": 3,
    "SchoolName": "sample string 4",
    "Title": "sample string 5",
    "Description": "sample string 6",
    "IsEnsemble": true,
    "CourseName": "sample string 8",
    "BookingTypeColor": "sample string 9",
    "NextTimeSlotDate": "2026-03-10T23:19:08.8410403+01:00",
    "Attributes": null,
    "TeacherAndRoomOnNextTimeSlot": [
      {
        "MasterResourceId": 1,
        "Name": "sample string 2",
        "Role": "sample string 3"
      },
      {
        "MasterResourceId": 1,
        "Name": "sample string 2",
        "Role": "sample string 3"
      }
    ],
    "TimeSlots": [
      {
        "BookingDate": "2026-03-10T23:19:08.8410403+01:00",
        "StartTime": "00:00:00.1234567",
        "EndTime": "00:00:00.1234567"
      },
      {
        "BookingDate": "2026-03-10T23:19:08.8410403+01:00",
        "StartTime": "00:00:00.1234567",
        "EndTime": "00:00:00.1234567"
      }
    ]
  },
  {
    "BookingId": 1,
    "BookingTypeId": 2,
    "BookingTypeType": 3,
    "SchoolName": "sample string 4",
    "Title": "sample string 5",
    "Description": "sample string 6",
    "IsEnsemble": true,
    "CourseName": "sample string 8",
    "BookingTypeColor": "sample string 9",
    "NextTimeSlotDate": "2026-03-10T23:19:08.8410403+01:00",
    "Attributes": null,
    "TeacherAndRoomOnNextTimeSlot": [
      {
        "MasterResourceId": 1,
        "Name": "sample string 2",
        "Role": "sample string 3"
      },
      {
        "MasterResourceId": 1,
        "Name": "sample string 2",
        "Role": "sample string 3"
      }
    ],
    "TimeSlots": [
      {
        "BookingDate": "2026-03-10T23:19:08.8410403+01:00",
        "StartTime": "00:00:00.1234567",
        "EndTime": "00:00:00.1234567"
      },
      {
        "BookingDate": "2026-03-10T23:19:08.8410403+01:00",
        "StartTime": "00:00:00.1234567",
        "EndTime": "00:00:00.1234567"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfPlayBookingViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpeedadminApi.ViewModels">
  <PlayBookingViewModel>
    <BookingId>1</BookingId>
    <BookingTypeColor>sample string 9</BookingTypeColor>
    <BookingTypeId>2</BookingTypeId>
    <BookingTypeType>3</BookingTypeType>
    <CourseName>sample string 8</CourseName>
    <Description>sample string 6</Description>
    <IsEnsemble>true</IsEnsemble>
    <NextTimeSlotDate>2026-03-10T23:19:08.8410403+01:00</NextTimeSlotDate>
    <SchoolName>sample string 4</SchoolName>
    <TeacherAndRoomOnNextTimeSlot>
      <PlayBookingTimeSlotViewModel>
        <MasterResourceId>1</MasterResourceId>
        <Name>sample string 2</Name>
        <Role>sample string 3</Role>
      </PlayBookingTimeSlotViewModel>
      <PlayBookingTimeSlotViewModel>
        <MasterResourceId>1</MasterResourceId>
        <Name>sample string 2</Name>
        <Role>sample string 3</Role>
      </PlayBookingTimeSlotViewModel>
    </TeacherAndRoomOnNextTimeSlot>
    <TimeSlots>
      <PlayBookingDatesViewModel>
        <BookingDate>2026-03-10T23:19:08.8410403+01:00</BookingDate>
        <EndTime>PT0.1234567S</EndTime>
        <StartTime>PT0.1234567S</StartTime>
      </PlayBookingDatesViewModel>
      <PlayBookingDatesViewModel>
        <BookingDate>2026-03-10T23:19:08.8410403+01:00</BookingDate>
        <EndTime>PT0.1234567S</EndTime>
        <StartTime>PT0.1234567S</StartTime>
      </PlayBookingDatesViewModel>
    </TimeSlots>
    <Title>sample string 5</Title>
  </PlayBookingViewModel>
  <PlayBookingViewModel>
    <BookingId>1</BookingId>
    <BookingTypeColor>sample string 9</BookingTypeColor>
    <BookingTypeId>2</BookingTypeId>
    <BookingTypeType>3</BookingTypeType>
    <CourseName>sample string 8</CourseName>
    <Description>sample string 6</Description>
    <IsEnsemble>true</IsEnsemble>
    <NextTimeSlotDate>2026-03-10T23:19:08.8410403+01:00</NextTimeSlotDate>
    <SchoolName>sample string 4</SchoolName>
    <TeacherAndRoomOnNextTimeSlot>
      <PlayBookingTimeSlotViewModel>
        <MasterResourceId>1</MasterResourceId>
        <Name>sample string 2</Name>
        <Role>sample string 3</Role>
      </PlayBookingTimeSlotViewModel>
      <PlayBookingTimeSlotViewModel>
        <MasterResourceId>1</MasterResourceId>
        <Name>sample string 2</Name>
        <Role>sample string 3</Role>
      </PlayBookingTimeSlotViewModel>
    </TeacherAndRoomOnNextTimeSlot>
    <TimeSlots>
      <PlayBookingDatesViewModel>
        <BookingDate>2026-03-10T23:19:08.8410403+01:00</BookingDate>
        <EndTime>PT0.1234567S</EndTime>
        <StartTime>PT0.1234567S</StartTime>
      </PlayBookingDatesViewModel>
      <PlayBookingDatesViewModel>
        <BookingDate>2026-03-10T23:19:08.8410403+01:00</BookingDate>
        <EndTime>PT0.1234567S</EndTime>
        <StartTime>PT0.1234567S</StartTime>
      </PlayBookingDatesViewModel>
    </TimeSlots>
    <Title>sample string 5</Title>
  </PlayBookingViewModel>
</ArrayOfPlayBookingViewModel>