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

Overview

Request for User Settings.

Details

Type

POST

Endpoint

{{url}}/api/User/Settings

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": Object{
    "Value": "string", 
    "Locked": false
  },
  "TelNumber": Object{
    "Value": "string", 
    "Locked": false
  },
  "JobTitle": Object{
    "Value": "string", 
    "Locked": true
  },
  "UserImage": Object{
    "Value": "string", 
    "Locked": false
  },
  "WorkingDays": {
    "Monday": true,
    "Tuesday": true,
    "Wednesday": true,
    "Thursday": true,
    "Friday": true,
    "Saturday": false,
    "Sunday": false
  },
  "DefaultWorkPlaces": Object{
    "Monday": Array[
      Object{"StartTime": "09:00", "EndTime": "17:00", "Place": "string"}
    ],
    "Tuesday": Array[
      Object{"StartTime": "09:00", "EndTime": "17:00", "Place": "string"}
    ],
    "Wednesday": Array[
      Object{"StartTime": "09:00", "EndTime": "17:00", "Place": "string"}
    ],
    "Thursday": Array[
      Object{"StartTime": "09:00", "EndTime": "17:00", "Place": "string"}
    ],
    "Friday": Array[
      Object{"StartTime": "09:00", "EndTime": "17:00", "Place": "string"}
    ],
    "Saturday": Array[],
    "Sunday": Array[],
  }
  "WorkPlaceVisibility": "Organisation" // (Organisation, Department, Team, Only Me)
  "DateFormat": "dd/MM/yyyy",
  "24hrTimeFormat": boolean,
  "FirstDayOfWeek": "Monday", // (Monday, Tuesday, ...)
  "DefaultLocation": Object{
    "LocationId": int,
    "Country": "string",
    "City": "string",
    "Site": "string",
    "Building": "string",
    "Floor": "string",
    "Zone": "string",
    "Locked": false
  },
  "Departments": Array[
    Object{
      "Id": int,
      "Name": "string",
      "Manager": int (User Id),
      "Members": [int (User Id),int (User Id)],
      "Teams": [int,int,int]
    }
  ],
  "Teams": Array[
    Object{
      "Id": int,
      "Name": "string",
      "TeamLeader": int (User Id),
      "Members": [int (User Id),int (User Id)]
    }
  ],
  "BookableLocations": Array[
    Object{
      "LocationId": int,
      "Country": "string",
      "City": "string",
      "Site": "string",
      "Building": "string",
      "Floor": "string",
      "Zone": "string"
    }
  ],
  "ViewableLocations": Array[
    Object{
      "LocationId": int,
      "Country": "string",
      "City": "string",
      "Site": "string",
      "Building": "string",
      "Floor": "string",
      "Zone": "string"
    }
  ]
}
  • No labels