Versions Compared

Key

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

...

{{url}}/api/User/SetStatus

Request

The UserId Id or EmailAddress can be used; at least one is required to identify the correct user.
The WorkingLocatingSchedule is an array of weekdays, this is the user's default weekly schedule.
The CustomWorkingLocation option is an array of dates with a custom working location, this overwrites the default schedule.

...

Code Block
languagejson
{
  "UserIdId": 13int,
  "EmailAddress": "charlotte.hill@email.comstring (email address)",
  "WorkingLocatingSchedule": {
    "Monday": [
      {"StartTime": "09:00", "EndTime": "17:00", "Location": "Officestring"}
    ],
    "Tuesday": [
      {"StartTime": "09:00", "EndTime": "17:00", "Location": "Officestring"}
    ],
    "Wednesday": [
      {"StartTime": "09:00", "EndTime": "17:00", "Location": "Officestring"}
    ],
    "Thursday": [
      {"StartTime": "09:00", "EndTime": "17:00", "Location": "Officestring"}
    ],
    "Friday": [
      {"StartTime": "09:00", "EndTime": "17:00", "Location": "Homestring"}
    ],
    "Saturday": [],
    "Sunday": [],
  }
  "CustomWorkingLocation": [
    {
      "Date": "dd/MM/yyyy",
      "StartTime": "HH:mm",
      "EndTime": "HH:mm",
      "WorkingLocation": "string"
    }
  ]
}

...