kimai_client_lib 1.0.0

JSON API for the Kimai time-tracking software. Read our [API documentation](https://www.kimai.org/documentation/rest-api.html) and download the [Open API definition](doc.json) to import into your API client.
Documentation
# \AbsenceApi

All URIs are relative to *http://localhost*

Method | HTTP request | Description
------------- | ------------- | -------------
[**delete_delete_absence**]AbsenceApi.md#delete_delete_absence | **DELETE** /api/absences/{id} | Delete an absence
[**delete_delete_public_holiday**]AbsenceApi.md#delete_delete_public_holiday | **DELETE** /api/public-holidays/{id} | Delete a public holiday
[**delete_delete_public_holiday_group**]AbsenceApi.md#delete_delete_public_holiday_group | **DELETE** /api/public-holidays/group/{id} | Delete a public holiday group
[**get_get_absences**]AbsenceApi.md#get_get_absences | **GET** /api/absences | Returns a collection of absences (sickness, vacation, time-off, other).
[**get_get_absences_calendar**]AbsenceApi.md#get_get_absences_calendar | **GET** /api/absences/calendar | Returns a collection of absences (sickness, vacation, time-off, other) for calendar integration.
[**get_get_public_holidays**]AbsenceApi.md#get_get_public_holidays | **GET** /api/public-holidays | Returns a collection of public holidays.
[**get_get_public_holidays_calendar**]AbsenceApi.md#get_get_public_holidays_calendar | **GET** /api/public-holidays/calendar | Returns a collection of public holidays for calendar integration.
[**get_kimaiplugin_workcontract_api_absence_getabsencetypes**]AbsenceApi.md#get_kimaiplugin_workcontract_api_absence_getabsencetypes | **GET** /api/absences/types | Returns a collection of absences (sickness, vacation, time-off, other).
[**patch_confirm_approval_absence**]AbsenceApi.md#patch_confirm_approval_absence | **PATCH** /api/absences/{id}/confirm | Confirm an approval request
[**patch_reject_approval_absence**]AbsenceApi.md#patch_reject_approval_absence | **PATCH** /api/absences/{id}/reject | Reject an approval request
[**patch_request_approval_absence**]AbsenceApi.md#patch_request_approval_absence | **PATCH** /api/absences/{id}/request | Request an approval



## delete_delete_absence

> delete_delete_absence(id)
Delete an absence

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | Absence ID to delete | [required] |

### Return type

 (empty response body)

### Authorization

[bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## delete_delete_public_holiday

> delete_delete_public_holiday(id)
Delete a public holiday

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | Publi holiday ID to delete | [required] |

### Return type

 (empty response body)

### Authorization

[bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## delete_delete_public_holiday_group

> delete_delete_public_holiday_group(id)
Delete a public holiday group

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | Public holiday group ID to delete | [required] |

### Return type

 (empty response body)

### Authorization

[bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_get_absences

> Vec<models::Absence> get_get_absences(user, begin, end)
Returns a collection of absences (sickness, vacation, time-off, other).

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**user** | Option<**String**> | User ID to filter absences. Needs permission 'contract_other_profile' (default: current user) |  |
**begin** | Option<**String**> | Only absences after this date will be included (format: HTML5) |  |
**end** | Option<**String**> | Only absences before this date will be included (format: HTML5) |  |

### Return type

[**Vec<models::Absence>**](Absence.md)

### Authorization

[bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_get_absences_calendar

> Vec<models::CalendarEvent> get_get_absences_calendar(user, begin, end, language)
Returns a collection of absences (sickness, vacation, time-off, other) for calendar integration.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**user** | Option<**String**> | User ID to filter absences. Needs permission 'contract_other_profile' (default: current user) |  |
**begin** | Option<**String**> | Only absences after this date will be included (format: HTML5) |  |
**end** | Option<**String**> | Only absences before this date will be included (format: HTML5) |  |
**language** | Option<**String**> | The language to be used for displaying the absences (format: en or en_GB) |  |

### Return type

[**Vec<models::CalendarEvent>**](CalendarEvent.md)

### Authorization

[bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_get_public_holidays

> Vec<models::PublicHoliday> get_get_public_holidays(group, begin, end)
Returns a collection of public holidays.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**group** | Option<**String**> | Public holiday - group ID to filter. (default: default group) |  |
**begin** | Option<**String**> | Only absences after this date will be included (format: HTML5) |  |
**end** | Option<**String**> | Only absences before this date will be included (format: HTML5) |  |

### Return type

[**Vec<models::PublicHoliday>**](PublicHoliday.md)

### Authorization

[bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_get_public_holidays_calendar

> Vec<models::CalendarEvent> get_get_public_holidays_calendar(group, begin, end)
Returns a collection of public holidays for calendar integration.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**group** | Option<**String**> | Public holiday - group ID to filter. (default: default group) |  |
**begin** | Option<**String**> | Only absences after this date will be included (format: HTML5) |  |
**end** | Option<**String**> | Only absences before this date will be included (format: HTML5) |  |

### Return type

[**Vec<models::CalendarEvent>**](CalendarEvent.md)

### Authorization

[bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_kimaiplugin_workcontract_api_absence_getabsencetypes

> std::collections::HashMap<String, String> get_kimaiplugin_workcontract_api_absence_getabsencetypes(language)
Returns a collection of absences (sickness, vacation, time-off, other).

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**language** | Option<**String**> | The language to be used for displaying the absences types (format: de or en_GB) |  |

### Return type

**std::collections::HashMap<String, String>**

### Authorization

[bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## patch_confirm_approval_absence

> models::Absence patch_confirm_approval_absence(id)
Confirm an approval request

Confirm approval request for absence

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | Absence ID | [required] |

### Return type

[**models::Absence**](Absence.md)

### Authorization

[bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## patch_reject_approval_absence

> models::Absence patch_reject_approval_absence(id)
Reject an approval request

Reject approval request for absence

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | Absence ID | [required] |

### Return type

[**models::Absence**](Absence.md)

### Authorization

[bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## patch_request_approval_absence

> models::Absence patch_request_approval_absence(id)
Request an approval

Request approval for absence

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | Absence ID | [required] |

### Return type

[**models::Absence**](Absence.md)

### Authorization

[bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)