Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Type

POST

Endpoint

{{url}}/api/UserUsers/GetSettings

Request

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

...

Code Block
languagejson
{
  "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",
  "24hrTimeFormatIs24hrFormat": boolean,
  "AccessCode": Object{
    "Value": "string", 
    "Locked": true
  },
  "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": Array[
          int (User Id)
      ],
      "Members": [int (User Id),int (User Id)],
      "Teams": [int,int,int]
    }
  ],
  "Teams": Array[
    Object{
      "Id": int,
      "Name": "string",
      "TeamLeader": Array[
          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"
    }
  ]
}