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

Version 1 Next »

Overview

Request for a users Assigned space.

This will return the user's assigned space and current & future availability bookings for this space.

Details

Type

POST

Endpoint

{{url}}/api/User/GetAssignedSpace

Request

The request will have two valid parameters.

The UserId or EmailAddress can be used; at least one is required.
Both values can be used to return the selected users' Assigned space detail correctly.

Example

{
  "UserId": int,
  "EmailAddress": "string (email address)"
}

Response

The response will include the user’s information as specified in the request.

  • UserId

  • EmailAddress

The Assigned resource’s ID (ResId) and display name (ResName) will be returned.

  • ResId - The ID value for the Assigned space.

  • ResName - The display name for the Assigned space.

  • SpaceType - The space type for the Assigned space. (Not required for initial release)

  • IconPath - The URL path to the icon for the Assigned space. (Not required for initial release)

  • MapId - An array of Map IDs that the Assigned space is added to. (Not required for initial release)

An array of dates that the Assigned space is not being used by the owner.

  • AvailableForColleagueDates - An array of objects which include start and end dates.

Example

{
  "UserId": int,
  "EmailAddress": "string (email address)",
  "AssignedSpace": {
    "ResId": int,
    "ResName": "string",
    "SpaceType": "string",
    "IconPath": "string"
    "MapId": Array[int,int]
  }
  "AvailableForColleagueDates": Array[
    Object{
      "StartDate": "dd/MM/yyyy",
      "EndDate": "dd/MM/yyyy",
    }
  ]
}
  • No labels