Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

Overview

Search request for Resources.

Details

Type

POST

Endpoint

{{url}}/api/Search/Resources

Request

Example

{
  "SearchText": "",
  "Location": {
    "Country": "",
    "City": "",
    "Site": "",
    "Building": "",
    "Floor": "",
    "Zone": ""
  },
  "SpaceTypes": ["Room", "Conference Room"],
  "Equipment": ["Phone", "TV"],
  "Tags": [],
  "MinOccupancy": 4,
  "Available": true, // available based on StartTime and EndTime
  "StartTime": "dd/MM/yyyy HH:mm",
  "EndTime": "dd/MM/yyyy HH:mm"
}

Response

The response will include the user's bookings.

Example

{
  "SearchResults": [
    {
      "ResId": 1,
      "Name": "Meeting Room",
      "Status": 1,
      "Location": {
        "Country": "",
        "City": "",
        "Site": "",
        "Building": "",
        "Floor": "",
        "Zone": ""
      },
      "SpaceType": "Room",
      "IconPath": "",
      "Occupancy": 4,
      "MapId": 1234,
    },
    {
      "ResId": 2,
      "Name": "Conference Room",
      "Status": 1,
      "Location": {
        "Country": "",
        "City": "",
        "Site": "",
        "Building": "",
        "Floor": "",
        "Zone": ""
      },
      "SpaceType": "Conference Room",
      "IconPath": "/ResourceFiles/images/conference-room-icon.svg",
      "Occupancy": 8,
      "MapId": 1234,
    }
  ]
}

Use case example

  • No labels