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 8 Next »

Overview

Request for User Data.

Details

Type

POST

Endpoint

{{url}}/api/GetUserData

Request

The request will have two valid parameters, Id or EmailAddress can be used but at least one is required.

Example

{
  "Id": int,
  "Emailaddress": "string",
}

Response

Example

{
  "Id": 13,
  "FirstName": "string",
  "LastName": "string", 
  "EmailAddress": {
    "Value": "string", 
    "Locked": false
  },
  "TelNumber":{
    "Value": "string", 
    "Locked": false
  },
  "JobTitle":{
    "Value": "string", 
    "Locked": true
  },
  "UserImage": {
    "Value": "string", 
    "Locked": false
  },
  "EventsToday": int, // number of events user has today
  "DefaultLocation": {
    "LocationId": int,
    "Country": "string",
    "City": "string",
    "Site": "string",
    "Building": "string",
    "Floor": "string",
    "Zone": "string",
    "Locked": false
  },
  "AssignedWorkspace": [
    "Id": int,
    "ResName": "string",
    "Locked"
  ],
  "Departments": [
    {
      "Id": int,
      "Name": "string",
      "Manager": int (User Id),
      "Members": [int (User Id),int (User Id)],
      "Teams": [int,int,int]
    }
  ],
  "Teams": [
    {
      "Id": int,
      "Name": "string",
      "TeamLeader": int (User Id),
      "Members": [int (User Id),int (User Id)]
    }
  ],
  "BookableLocations": [
    {
      "LocationId": int,
      "Country": "string",
      "City": "string",
      "Site": "string",
      "Building": "string",
      "Floor": "string",
      "Zone": "string"
    }
  ],
  "ViewableLocations": [
    {
      "LocationId": int,
      "Country": "string",
      "City": "string",
      "Site": "string",
      "Building": "string",
      "Floor": "string",
      "Zone": "string"
    }
  ],
  "DateFormat": "dd/MM/yyyy",
  "24hrTimeFormat": boolean,
  
}
  • No labels