Versions Compared

Key

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

Overview

Excerpt

Request for User’s to update their own user information.

Details

Type

POST

Endpoint

{{url}}/api/UserUsers/SetDataSetSettings

Request

The request will contain all information that users can update about their profile.

Id and EmailAddress fields are used to identify the user to update.

Example

Code Block
languagejson
{
  "Id": int,
  "EmailAddress": "string",
  "FirstName": "string",
  "LastName": "string",
  "TelNumber": "+00000000000",
  "UserImage": "string",
  "DefaultLocation": Object{
    "LocationId": int,
    "Country": "string",
    "City": "string",
    "Site": "string",
    "Building": "string",
    "Floor": "string",
    "Zone": "string"
  },
  "WorkingDays": {
    "Monday": true,
    "Tuesday": true,
    "Wednesday": true,
    "Thursday": true,
    "Friday": true,
    "Saturday": false,
    "Sunday": false
  },
  "DefaultWorkLocationsDefaultWorkPlaces": Object{
    "Monday": Array[
      Object{"StartTime": "09:00", "EndTime": "17:00", "LocationPlace": "string"}
    ],
    "Tuesday": Array[
      Object{"StartTime": "09:00", "EndTime": "17:00", "LocationPlace": "string"}
    ],
    "Wednesday": Array[
      Object{"StartTime": "09:00", "EndTime": "17:00", "LocationPlace": "string"}
    ],
    "Thursday": Array[
      Object{"StartTime": "09:00", "EndTime": "17:00", "LocationPlace": "string"}
    ],
    "Friday": Array[
      Object{"StartTime": "09:00", "EndTime": "17:00", "LocationPlace": "string"}
    ],
    "Saturday": Array[],
    "Sunday": Array[],
  },
  "WorkLocationVisibilityWorkPlaceVisibility": "Organisation" // (Organisation, Department, Team, Only Me)
  "DateFormat": "dd/MM/yyyy",
  "24hrTimeFormatIs24hrFormat": boolean,
  "FirstDayOfWeek": "Monday", // (Monday, Tuesday, ...)
}

Response

Example

Code Block
languagejson
{
  "Updated" true
}

...