# Fortnox\FortnoxScheduleTimesApi



All URIs are relative to https://api.fortnox.se, except if the operation defines another base path.

| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**scheduleTimeControllerDoShow()**](FortnoxScheduleTimesApi.md#scheduleTimeControllerDoShow) | **GET** /3/scheduletimes/{EmployeeId}/{Date} | Retrieve a specific schedule time |
| [**scheduleTimeControllerDoUpdate()**](FortnoxScheduleTimesApi.md#scheduleTimeControllerDoUpdate) | **PUT** /3/scheduletimes/{EmployeeId}/{Date} | Update a schedule time |
| [**scheduleTimeControllerDoUpdateAndResetDay()**](FortnoxScheduleTimesApi.md#scheduleTimeControllerDoUpdateAndResetDay) | **PUT** /3/scheduletimes/{EmployeeId}/{Date}/resetday | Reset schedule time |


## `scheduleTimeControllerDoShow()`

```php
scheduleTimeControllerDoShow($employee_id, $date): \Fortnox\Model\FortnoxLonScheduleTimeSingleItemWrap
```

Retrieve a specific schedule time

Retrieve a schedule time

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Fortnox\Api\FortnoxScheduleTimesApi(
    // 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()
);
$employee_id = 'employee_id_example'; // string | identifies the employee
$date = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime | identifies the date

try {
    $result = $apiInstance->scheduleTimeControllerDoShow($employee_id, $date);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FortnoxScheduleTimesApi->scheduleTimeControllerDoShow: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **employee_id** | **string**| identifies the employee | |
| **date** | **\DateTime**| identifies the date | |

### Return type

[**\Fortnox\Model\FortnoxLonScheduleTimeSingleItemWrap**](../Model/FortnoxLonScheduleTimeSingleItemWrap.md)

### Authorization

No authorization required

### HTTP request headers

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

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

## `scheduleTimeControllerDoUpdate()`

```php
scheduleTimeControllerDoUpdate($employee_id, $date, $schedule_time): \Fortnox\Model\FortnoxLonScheduleTimeSingleItemWrap
```

Update a schedule time

Update a schedule time

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Fortnox\Api\FortnoxScheduleTimesApi(
    // 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()
);
$employee_id = 'employee_id_example'; // string | identifies the employee
$date = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime | identifies the date
$schedule_time = new \Fortnox\Model\FortnoxLonScheduleTimeSinglePayloadItemWrap(); // \Fortnox\Model\FortnoxLonScheduleTimeSinglePayloadItemWrap | Request body for update schedule time

try {
    $result = $apiInstance->scheduleTimeControllerDoUpdate($employee_id, $date, $schedule_time);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FortnoxScheduleTimesApi->scheduleTimeControllerDoUpdate: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **employee_id** | **string**| identifies the employee | |
| **date** | **\DateTime**| identifies the date | |
| **schedule_time** | [**\Fortnox\Model\FortnoxLonScheduleTimeSinglePayloadItemWrap**](../Model/FortnoxLonScheduleTimeSinglePayloadItemWrap.md)| Request body for update schedule time | [optional] |

### Return type

[**\Fortnox\Model\FortnoxLonScheduleTimeSingleItemWrap**](../Model/FortnoxLonScheduleTimeSingleItemWrap.md)

### Authorization

No authorization required

### HTTP request headers

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

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

## `scheduleTimeControllerDoUpdateAndResetDay()`

```php
scheduleTimeControllerDoUpdateAndResetDay($employee_id, $date, $fortnox_lon_schedule_time_single_payload_item_wrap): \Fortnox\Model\FortnoxLonScheduleTimeSingleItemWrap
```

Reset schedule time

Update a schedule time

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Fortnox\Api\FortnoxScheduleTimesApi(
    // 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()
);
$employee_id = 'employee_id_example'; // string | identifies the employee
$date = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime | identifies the date
$fortnox_lon_schedule_time_single_payload_item_wrap = new \Fortnox\Model\FortnoxLonScheduleTimeSinglePayloadItemWrap(); // \Fortnox\Model\FortnoxLonScheduleTimeSinglePayloadItemWrap | Request body for update schedule time

try {
    $result = $apiInstance->scheduleTimeControllerDoUpdateAndResetDay($employee_id, $date, $fortnox_lon_schedule_time_single_payload_item_wrap);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FortnoxScheduleTimesApi->scheduleTimeControllerDoUpdateAndResetDay: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description  | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **employee_id** | **string**| identifies the employee | |
| **date** | **\DateTime**| identifies the date | |
| **fortnox_lon_schedule_time_single_payload_item_wrap** | [**\Fortnox\Model\FortnoxLonScheduleTimeSinglePayloadItemWrap**](../Model/FortnoxLonScheduleTimeSinglePayloadItemWrap.md)| Request body for update schedule time | [optional] |

### Return type

[**\Fortnox\Model\FortnoxLonScheduleTimeSingleItemWrap**](../Model/FortnoxLonScheduleTimeSingleItemWrap.md)

### Authorization

No authorization required

### HTTP request headers

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

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