/
Set User's Work Places

Set User's Work Places

Overview

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

Details

Type

POST

Endpoint

{{url}}/api/Users/SetWorkPlaces

Request

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

Users can add, edit or remove WorkPlaceExceptions, this is defined by the Action field.

  • Add - This requires start and end values.

  • Edit - This requires the event ID as well as the updated start and end values.

  • Remove - This requires the event ID value.

Example

{ "Id": int, "EmailAddress": "string (email address)", "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[], } "WorkPlaceExceptions": Array[ Object{ "Action": "Add", "Id": null, "Date": "dd/MM/yyyy", "StartTime": "HH:mm", "EndTime": "HH:mm", "WorkingPlace": "string" } ] }

Response

The response should indicate a successful update of the data.

Example

{ "Updated" true }

Related content

Set User Settings
Set User Settings
More like this
Set Assigned Space Availability
Set Assigned Space Availability
More like this
Get User Settings
Get User Settings
More like this
Get User Settings (Basic)
Get User Settings (Basic)
More like this
2024.3 - August 2024
2024.3 - August 2024
Read with this
Get User's Work Places
Get User's Work Places
More like this