Get Function Space Availability

Get Venue Function Space Availability

POST [PlatformAddress]/api/1.0/venue?action=getFunctionSpaceAvailabilityundefined

Returns the availability of function spaces in a specific venue.

Path Parameters

NameTypeDescription

venueId

integer

The id of the venue

startDate

date

The date from which the availability data will be fetched. Format YYY-MM-DD

endDate

date

The date to which the availability data will be fetched. Format YYY-MM-DD. The maximum number of days of available that can be fetched is 14.

spaceIds

array

Optionally the list of space ids to which availability will be limited.

{
    "availability": [
        {
            "spaceId": 1,
            "timeSlots": [
                {
                    "date": "2020-11-26",
                    "startTime": "00:00:00",
                    "endTime": "23:59:59"
                },
                {
                    "date": "2020-11-27",
                    "startTime": "00:00:00",
                    "endTime": "09:00:00"
                },
                {
                    "date": "2020-11-27",
                    "startTime": "17:00:00",
                    "endTime": "23:59:59"
                },
                {
                    "date": "2020-11-28",
                    "startTime": "00:00:00",
                    "endTime": "23:59:59"
                },
                {
                    "date": "2020-11-29",
                    "startTime": "00:00:00",
                    "endTime": "23:59:59"
                },
                {
                    "date": "2020-11-30",
                    "startTime": "00:00:00",
                    "endTime": "23:59:59"
                }
            ]
        },
        {
            "spaceId": 2,
            "timeSlots": [
                {
                    "date": "2020-11-26",
                    "startTime": "00:00:00",
                    "endTime": "23:59:59"
                },
                {
                    "date": "2020-11-27",
                    "startTime": "00:00:00",
                    "endTime": "23:59:59"
                },
                {
                    "date": "2020-11-28",
                    "startTime": "00:00:00",
                    "endTime": "23:59:59"
                },
                {
                    "date": "2020-11-29",
                    "startTime": "00:00:00",
                    "endTime": "23:59:59"
                },
                {
                    "date": "2020-11-30",
                    "startTime": "00:00:00",
                    "endTime": "23:59:59"
                }
            ]
        }
    ]
}

Example Request

Get Venues Function Space List

{
    "venueId":1,
    "startDate": "2020-11-26",
    "endDate": "2020-11-30",
    "spaceIds": [1, 2]
}

Returns

A collection object with the following properties in the results

PropertyData TypeDescription

availability

array

Array of spaces with availability data. See "Space Availability" for details.

Space Availability

A collection object with the following properties in the results

PropertyData TypeDescription

spaceId

integer

The id of space to which the time slots belong.

timeSlots

array

The array of time slots. See "Space Time Slots" for details.

Space Time Slots

A collection object with the following properties in the results

PropertyData TypeDescription

date

date

The date to which the time slot applies. Format YYYY-MM-DD

startTime

string

The start time of the available time slot. Format H:i:s

endTime

string

The end time of the available time slot. Format H:i:s

Last updated