Method SetUserAbsenceSettings
SetUserAbsenceSettings(String, AbsenceSettingsContract)
Sets absence settings for the logged in user
Declaration
void SetUserAbsenceSettings(string connectionId, AbsenceSettingsContract absenceSettings)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
AbsenceSettingsContract | absenceSettings | Absence settings to set. See also AbsenceSettingsContract |
Examples
POST http://YourServerName/InfoShare/Json/Common/SetUserAbsenceSettings
Example for deleting a certificate.{
"connectionId": "0c34330d-b792-4df1-91cc-b2ed6ec0375b",
"absenceSettings": {
"Absent ": true,
"AbsenceDateStart": "2023-02-21T12:45:04",
"AbsenceDateEnd": "2023-04-11T16:00:04",
"DeputyRepresentativeUserId": "125a4e54-0f45-ed01-a6c7-12154df02701"
}
Response:
{ }
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | AbsenceDateStart {absenceSettings.AbsenceDateStart} must be before AbsenceDateEnd {absenceSettings.AbsenceDateEnd} (10263) |
ServiceException | AbsenceDateStart and AbsenceDateEnd: Both values must be set or neither of them (10264) |
ServiceException | A user can not assign himself as deputy (10265) |
ServiceException | User not found {deputyRepresentativeUserId} (10047) |