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 6 Current »

Overview

Search request for Resources.

Details

Type

POST

Endpoint

{{url}}/api/Search/Resources

Request

The request will include all filter options valid for resources; such as location, space type, equipment etc.
The option to specify available resources only is needed, this will then require the start and end time option.

Example

{
  "SearchText": "string",
  "Location": {
    "Country": "string",
    "City": "string",
    "Site": "string",
    "Building": "string",
    "Floor": "string",
    "Zone": "string"
  },
  "SpaceTypes": Array["string", "string"],
  "Equipment": Array["string", "string"],
  "Tags": Array[],
  "MinOccupancy": int,
  "Available": boolean, // available based on StartTime and EndTime
  "StartTime": "dd/MM/yyyy HH:mm",
  "EndTime": "dd/MM/yyyy HH:mm"
}

Response

The response will include a list of all resources that match the requested search criteria.

Full booking data for each resource is not required.

Example

{
  "SearchResults": [
    {
      "Id": int,
      "Name": "string",
      "Status": int,
      "Location": {
        "Country": "string",
        "City": "string",
        "Site": "string",
        "Building": "string",
        "Floor": "string",
        "Zone": "string"
      },
      "SpaceType": "string",
      "IconPath": "string",
      "Occupancy": int,
      "MapId": int,
    },
    {
      "Id": int,
      "Name": "string",
      "Status": int,
      "Location": {
        "Country": "string",
        "City": "string",
        "Site": "string",
        "Building": "string",
        "Floor": "string",
        "Zone": "string"
      },
      "SpaceType": "string",
      "IconPath": "string",
      "Occupancy": int,
      "MapId": int,
    }
  ]
}

Use case

https://www.figma.com/file/PYl87VrybgtPIqMQr34kJ6/RX-Outlook-Add-in?type=design&node-id=196-155956&mode=dev

  • No labels