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

Overview

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

Details

Type

POST

Endpoint

{{url}}/api/User/SetSettings

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

{
  "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
  },
  "DefaultWorkLocations": Object{
    "Monday": Array[
      Object{"StartTime": "09:00", "EndTime": "17:00", "Location": "string"}
    ],
    "Tuesday": Array[
      Object{"StartTime": "09:00", "EndTime": "17:00", "Location": "string"}
    ],
    "Wednesday": Array[
      Object{"StartTime": "09:00", "EndTime": "17:00", "Location": "string"}
    ],
    "Thursday": Array[
      Object{"StartTime": "09:00", "EndTime": "17:00", "Location": "string"}
    ],
    "Friday": Array[
      Object{"StartTime": "09:00", "EndTime": "17:00", "Location": "string"}
    ],
    "Saturday": Array[],
    "Sunday": Array[],
  },
  "WorkLocationVisibility": "Organisation" // (Organisation, Department, Team, Only Me)
  "DateFormat": "dd/MM/yyyy",
  "24hrTimeFormat": boolean,
  "FirstDayOfWeek": "Monday", // (Monday, Tuesday, ...)
}

Response

Example

{
  "Updated" true
}

  • No labels