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

Overview

Request for User’s to update their status based on date and time.

Details

Type

POST

Endpoint

{{url}}/api/User/SetStatus

Request

The UserId 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.

Example

{
  "UserId": 13,
  "EmailAddress": "charlotte.hill@email.com",
  "WorkingLocatingSchedule": {
    "Monday": [
      {"StartTime": "09:00", "EndTime": "17:00", "Location": "Office"}
    ],
    "Tuesday": [
      {"StartTime": "09:00", "EndTime": "17:00", "Location": "Office"}
    ],
    "Wednesday": [
      {"StartTime": "09:00", "EndTime": "17:00", "Location": "Office"}
    ],
    "Thursday": [
      {"StartTime": "09:00", "EndTime": "17:00", "Location": "Office"}
    ],
    "Friday": [
      {"StartTime": "09:00", "EndTime": "17:00", "Location": "Home"}
    ],
    "Saturday": [],
    "Sunday": [],
  }
  "CustomWorkingLocation": [
    {
      "Date": "dd/MM/yyyy",
      "StartTime": "HH:mm",
      "EndTime": "HH:mm",
      "WorkingLocation": "string"
    }
  ]
}

Response

The response should indicate a successful update of the data.

Example

{
  "Updated" true
}
  • No labels