# OmsorgCoreClient\AbsencesApi All URIs are relative to http://localhost, except if the operation defines another base path. | Method | HTTP request | Description | | ------------- | ------------- | ------------- | | [**apiAbsencesGet()**](AbsencesApi.md#apiAbsencesGet) | **GET** /api/absences | | | [**apiAbsencesIdDecisionPost()**](AbsencesApi.md#apiAbsencesIdDecisionPost) | **POST** /api/absences/{id}/decision | | | [**apiAbsencesIdDelete()**](AbsencesApi.md#apiAbsencesIdDelete) | **DELETE** /api/absences/{id} | | | [**apiAbsencesIdGet()**](AbsencesApi.md#apiAbsencesIdGet) | **GET** /api/absences/{id} | | | [**apiAbsencesIdPut()**](AbsencesApi.md#apiAbsencesIdPut) | **PUT** /api/absences/{id} | | | [**apiAbsencesPost()**](AbsencesApi.md#apiAbsencesPost) | **POST** /api/absences | | ## `apiAbsencesGet()` ```php apiAbsencesGet($status, $type, $employee_id, $page, $page_size): \OmsorgCoreClient\Model\AbsenceResponsePagedResponse ``` ### Example ```php setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new OmsorgCoreClient\Api\AbsencesApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $status = 'status_example'; // string $type = 'type_example'; // string $employee_id = 'employee_id_example'; // string $page = 1; // int $page_size = 20; // int try { $result = $apiInstance->apiAbsencesGet($status, $type, $employee_id, $page, $page_size); print_r($result); } catch (Exception $e) { echo 'Exception when calling AbsencesApi->apiAbsencesGet: ', $e->getMessage(), PHP_EOL; } ``` ### Parameters | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **status** | **string**| | [optional] | | **type** | **string**| | [optional] | | **employee_id** | **string**| | [optional] | | **page** | **int**| | [optional] [default to 1] | | **page_size** | **int**| | [optional] [default to 20] | ### Return type [**\OmsorgCoreClient\Model\AbsenceResponsePagedResponse**](../Model/AbsenceResponsePagedResponse.md) ### Authorization [Bearer](../../README.md#Bearer) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: `text/plain`, `application/json`, `text/json` [[Back to top]](#) [[Back to API list]](../../README.md#endpoints) [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) ## `apiAbsencesIdDecisionPost()` ```php apiAbsencesIdDecisionPost($id, $absence_decision_request): \OmsorgCoreClient\Model\AbsenceResponse ``` ### Example ```php setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new OmsorgCoreClient\Api\AbsencesApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $id = 'id_example'; // string $absence_decision_request = new \OmsorgCoreClient\Model\AbsenceDecisionRequest(); // \OmsorgCoreClient\Model\AbsenceDecisionRequest try { $result = $apiInstance->apiAbsencesIdDecisionPost($id, $absence_decision_request); print_r($result); } catch (Exception $e) { echo 'Exception when calling AbsencesApi->apiAbsencesIdDecisionPost: ', $e->getMessage(), PHP_EOL; } ``` ### Parameters | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **id** | **string**| | | | **absence_decision_request** | [**\OmsorgCoreClient\Model\AbsenceDecisionRequest**](../Model/AbsenceDecisionRequest.md)| | [optional] | ### Return type [**\OmsorgCoreClient\Model\AbsenceResponse**](../Model/AbsenceResponse.md) ### Authorization [Bearer](../../README.md#Bearer) ### HTTP request headers - **Content-Type**: `application/json`, `text/json`, `application/*+json` - **Accept**: `text/plain`, `application/json`, `text/json` [[Back to top]](#) [[Back to API list]](../../README.md#endpoints) [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) ## `apiAbsencesIdDelete()` ```php apiAbsencesIdDelete($id) ``` ### Example ```php setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new OmsorgCoreClient\Api\AbsencesApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $id = 'id_example'; // string try { $apiInstance->apiAbsencesIdDelete($id); } catch (Exception $e) { echo 'Exception when calling AbsencesApi->apiAbsencesIdDelete: ', $e->getMessage(), PHP_EOL; } ``` ### Parameters | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **id** | **string**| | | ### Return type void (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#endpoints) [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) ## `apiAbsencesIdGet()` ```php apiAbsencesIdGet($id): \OmsorgCoreClient\Model\AbsenceResponse ``` ### Example ```php setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new OmsorgCoreClient\Api\AbsencesApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $id = 'id_example'; // string try { $result = $apiInstance->apiAbsencesIdGet($id); print_r($result); } catch (Exception $e) { echo 'Exception when calling AbsencesApi->apiAbsencesIdGet: ', $e->getMessage(), PHP_EOL; } ``` ### Parameters | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **id** | **string**| | | ### Return type [**\OmsorgCoreClient\Model\AbsenceResponse**](../Model/AbsenceResponse.md) ### Authorization [Bearer](../../README.md#Bearer) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: `text/plain`, `application/json`, `text/json` [[Back to top]](#) [[Back to API list]](../../README.md#endpoints) [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) ## `apiAbsencesIdPut()` ```php apiAbsencesIdPut($id, $update_absence_request): \OmsorgCoreClient\Model\AbsenceResponse ``` ### Example ```php setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new OmsorgCoreClient\Api\AbsencesApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $id = 'id_example'; // string $update_absence_request = new \OmsorgCoreClient\Model\UpdateAbsenceRequest(); // \OmsorgCoreClient\Model\UpdateAbsenceRequest try { $result = $apiInstance->apiAbsencesIdPut($id, $update_absence_request); print_r($result); } catch (Exception $e) { echo 'Exception when calling AbsencesApi->apiAbsencesIdPut: ', $e->getMessage(), PHP_EOL; } ``` ### Parameters | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **id** | **string**| | | | **update_absence_request** | [**\OmsorgCoreClient\Model\UpdateAbsenceRequest**](../Model/UpdateAbsenceRequest.md)| | [optional] | ### Return type [**\OmsorgCoreClient\Model\AbsenceResponse**](../Model/AbsenceResponse.md) ### Authorization [Bearer](../../README.md#Bearer) ### HTTP request headers - **Content-Type**: `application/json`, `text/json`, `application/*+json` - **Accept**: `text/plain`, `application/json`, `text/json` [[Back to top]](#) [[Back to API list]](../../README.md#endpoints) [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) ## `apiAbsencesPost()` ```php apiAbsencesPost($create_absence_request): \OmsorgCoreClient\Model\AbsenceResponse ``` ### Example ```php setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new OmsorgCoreClient\Api\AbsencesApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $create_absence_request = new \OmsorgCoreClient\Model\CreateAbsenceRequest(); // \OmsorgCoreClient\Model\CreateAbsenceRequest try { $result = $apiInstance->apiAbsencesPost($create_absence_request); print_r($result); } catch (Exception $e) { echo 'Exception when calling AbsencesApi->apiAbsencesPost: ', $e->getMessage(), PHP_EOL; } ``` ### Parameters | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | | **create_absence_request** | [**\OmsorgCoreClient\Model\CreateAbsenceRequest**](../Model/CreateAbsenceRequest.md)| | [optional] | ### Return type [**\OmsorgCoreClient\Model\AbsenceResponse**](../Model/AbsenceResponse.md) ### Authorization [Bearer](../../README.md#Bearer) ### HTTP request headers - **Content-Type**: `application/json`, `text/json`, `application/*+json` - **Accept**: `text/plain`, `application/json`, `text/json` [[Back to top]](#) [[Back to API list]](../../README.md#endpoints) [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md)