# PureCloudSDK\WorkforceManagementApi

All URIs are relative to *https://api.mypurecloud.ie*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getWorkforcemanagementAdherence**](WorkforceManagementApi.md#getWorkforcemanagementAdherence) | **GET** /api/v2/workforcemanagement/adherence | Get a list of UserScheduleAdherence records for the requested users
[**getWorkforcemanagementManagementunits**](WorkforceManagementApi.md#getWorkforcemanagementManagementunits) | **GET** /api/v2/workforcemanagement/managementunits | Get management units
[**getWorkforcemanagementManagementunitsMuIdActivitycodes**](WorkforceManagementApi.md#getWorkforcemanagementManagementunitsMuIdActivitycodes) | **GET** /api/v2/workforcemanagement/managementunits/{muId}/activitycodes | Get activity codes corresponding to a management unit
[**getWorkforcemanagementManagementunitsMuIdIntradayQueues**](WorkforceManagementApi.md#getWorkforcemanagementManagementunitsMuIdIntradayQueues) | **GET** /api/v2/workforcemanagement/managementunits/{muId}/intraday/queues | Get intraday queues for the given date
[**getWorkforcemanagementManagementunitsMuIdUsers**](WorkforceManagementApi.md#getWorkforcemanagementManagementunitsMuIdUsers) | **GET** /api/v2/workforcemanagement/managementunits/{muId}/users | Get agents in the management unit
[**getWorkforcemanagementManagementunitsMuIdUsersUserIdTimeoffrequests**](WorkforceManagementApi.md#getWorkforcemanagementManagementunitsMuIdUsersUserIdTimeoffrequests) | **GET** /api/v2/workforcemanagement/managementunits/{muId}/users/{userId}/timeoffrequests | Get a list of time off requests for any user
[**getWorkforcemanagementManagementunitsMuIdUsersUserIdTimeoffrequestsTimeoffrequestId**](WorkforceManagementApi.md#getWorkforcemanagementManagementunitsMuIdUsersUserIdTimeoffrequestsTimeoffrequestId) | **GET** /api/v2/workforcemanagement/managementunits/{muId}/users/{userId}/timeoffrequests/{timeOffRequestId} | Get a time off request by id
[**getWorkforcemanagementTimeoffrequests**](WorkforceManagementApi.md#getWorkforcemanagementTimeoffrequests) | **GET** /api/v2/workforcemanagement/timeoffrequests | Get a list of time off requests for the current user
[**getWorkforcemanagementTimeoffrequestsTimeoffrequestId**](WorkforceManagementApi.md#getWorkforcemanagementTimeoffrequestsTimeoffrequestId) | **GET** /api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId} | Get a time off request for the current user by id
[**patchWorkforcemanagementTimeoffrequestsTimeoffrequestId**](WorkforceManagementApi.md#patchWorkforcemanagementTimeoffrequestsTimeoffrequestId) | **PATCH** /api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId} | Mark a time off request for the current user as read or unread
[**postWorkforcemanagementManagementunitsMuIdIntraday**](WorkforceManagementApi.md#postWorkforcemanagementManagementunitsMuIdIntraday) | **POST** /api/v2/workforcemanagement/managementunits/{muId}/intraday | Get intraday data for the given date for the requested queueIds
[**postWorkforcemanagementManagementunitsMuIdSchedulesSearch**](WorkforceManagementApi.md#postWorkforcemanagementManagementunitsMuIdSchedulesSearch) | **POST** /api/v2/workforcemanagement/managementunits/{muId}/schedules/search | Get user schedules within the given time range
[**postWorkforcemanagementSchedules**](WorkforceManagementApi.md#postWorkforcemanagementSchedules) | **POST** /api/v2/workforcemanagement/schedules | Get a schedule for the current user


# **getWorkforcemanagementAdherence**
> \PureCloudSDK\UserScheduleAdherence[] getWorkforcemanagementAdherence($userId)

Get a list of UserScheduleAdherence records for the requested users



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

// Configure OAuth2 access token for authorization: PureCloud Auth
PureCloudSDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new PureCloudSDK\Api\WorkforceManagementApi();
$userId = array("userId_example"); // string[] | User Id(s) for which to fetch current schedule adherence information.  Min 1, Max of 100 userIds per request

try {
    $result = $api_instance->getWorkforcemanagementAdherence($userId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WorkforceManagementApi->getWorkforcemanagementAdherence: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **userId** | [**string[]**](../Model/string.md)| User Id(s) for which to fetch current schedule adherence information.  Min 1, Max of 100 userIds per request |

### Return type

[**\PureCloudSDK\UserScheduleAdherence[]**](../Model/UserScheduleAdherence.md)

### Authorization

[PureCloud Auth](../../README.md#PureCloud Auth)

### HTTP request headers

 - **Content-Type**: application/json
 - **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)

# **getWorkforcemanagementManagementunits**
> \PureCloudSDK\ManagementUnit[] getWorkforcemanagementManagementunits($selector, $pageSize, $pageNumber)

Get management units



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

// Configure OAuth2 access token for authorization: PureCloud Auth
PureCloudSDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new PureCloudSDK\Api\WorkforceManagementApi();
$selector = "selector_example"; // string | Selector
$pageSize = 25; // int | 
$pageNumber = 1; // int | 

try {
    $result = $api_instance->getWorkforcemanagementManagementunits($selector, $pageSize, $pageNumber);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WorkforceManagementApi->getWorkforcemanagementManagementunits: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **selector** | **string**| Selector | [optional]
 **pageSize** | **int**|  | [optional] [default to 25]
 **pageNumber** | **int**|  | [optional] [default to 1]

### Return type

[**\PureCloudSDK\ManagementUnit[]**](../Model/ManagementUnit.md)

### Authorization

[PureCloud Auth](../../README.md#PureCloud Auth)

### HTTP request headers

 - **Content-Type**: application/json
 - **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)

# **getWorkforcemanagementManagementunitsMuIdActivitycodes**
> \PureCloudSDK\ActivityCodeContainer getWorkforcemanagementManagementunitsMuIdActivitycodes($muId)

Get activity codes corresponding to a management unit



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

// Configure OAuth2 access token for authorization: PureCloud Auth
PureCloudSDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new PureCloudSDK\Api\WorkforceManagementApi();
$muId = "muId_example"; // string | The muId of the management unit.

try {
    $result = $api_instance->getWorkforcemanagementManagementunitsMuIdActivitycodes($muId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WorkforceManagementApi->getWorkforcemanagementManagementunitsMuIdActivitycodes: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **muId** | **string**| The muId of the management unit. |

### Return type

[**\PureCloudSDK\ActivityCodeContainer**](../Model/ActivityCodeContainer.md)

### Authorization

[PureCloud Auth](../../README.md#PureCloud Auth)

### HTTP request headers

 - **Content-Type**: application/json
 - **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)

# **getWorkforcemanagementManagementunitsMuIdIntradayQueues**
> \PureCloudSDK\WfmIntradayQueueListing getWorkforcemanagementManagementunitsMuIdIntradayQueues($muId, $date)

Get intraday queues for the given date



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

// Configure OAuth2 access token for authorization: PureCloud Auth
PureCloudSDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new PureCloudSDK\Api\WorkforceManagementApi();
$muId = "muId_example"; // string | The muId of the management unit.
$date = "date_example"; // string | ISO-8601 date string with no time or timezone component, interpreted in the configured management unit time zone, e.g. 2017-01-23

try {
    $result = $api_instance->getWorkforcemanagementManagementunitsMuIdIntradayQueues($muId, $date);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WorkforceManagementApi->getWorkforcemanagementManagementunitsMuIdIntradayQueues: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **muId** | **string**| The muId of the management unit. |
 **date** | **string**| ISO-8601 date string with no time or timezone component, interpreted in the configured management unit time zone, e.g. 2017-01-23 |

### Return type

[**\PureCloudSDK\WfmIntradayQueueListing**](../Model/WfmIntradayQueueListing.md)

### Authorization

[PureCloud Auth](../../README.md#PureCloud Auth)

### HTTP request headers

 - **Content-Type**: application/json
 - **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)

# **getWorkforcemanagementManagementunitsMuIdUsers**
> \PureCloudSDK\WfmUserEntityListing getWorkforcemanagementManagementunitsMuIdUsers($muId)

Get agents in the management unit



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

// Configure OAuth2 access token for authorization: PureCloud Auth
PureCloudSDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new PureCloudSDK\Api\WorkforceManagementApi();
$muId = "muId_example"; // string | The muId of the management unit.

try {
    $result = $api_instance->getWorkforcemanagementManagementunitsMuIdUsers($muId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WorkforceManagementApi->getWorkforcemanagementManagementunitsMuIdUsers: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **muId** | **string**| The muId of the management unit. |

### Return type

[**\PureCloudSDK\WfmUserEntityListing**](../Model/WfmUserEntityListing.md)

### Authorization

[PureCloud Auth](../../README.md#PureCloud Auth)

### HTTP request headers

 - **Content-Type**: application/json
 - **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)

# **getWorkforcemanagementManagementunitsMuIdUsersUserIdTimeoffrequests**
> \PureCloudSDK\TimeOffRequestList getWorkforcemanagementManagementunitsMuIdUsersUserIdTimeoffrequests($muId, $userId, $recentlyReviewed)

Get a list of time off requests for any user



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

// Configure OAuth2 access token for authorization: PureCloud Auth
PureCloudSDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new PureCloudSDK\Api\WorkforceManagementApi();
$muId = "muId_example"; // string | The muId of the management unit.
$userId = "userId_example"; // string | The userId to whom the Time Off Request applies.
$recentlyReviewed = false; // bool | Limit results to requests that have been reviewed within the preceding 30 days

try {
    $result = $api_instance->getWorkforcemanagementManagementunitsMuIdUsersUserIdTimeoffrequests($muId, $userId, $recentlyReviewed);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WorkforceManagementApi->getWorkforcemanagementManagementunitsMuIdUsersUserIdTimeoffrequests: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **muId** | **string**| The muId of the management unit. |
 **userId** | **string**| The userId to whom the Time Off Request applies. |
 **recentlyReviewed** | **bool**| Limit results to requests that have been reviewed within the preceding 30 days | [optional] [default to false]

### Return type

[**\PureCloudSDK\TimeOffRequestList**](../Model/TimeOffRequestList.md)

### Authorization

[PureCloud Auth](../../README.md#PureCloud Auth)

### HTTP request headers

 - **Content-Type**: application/json
 - **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)

# **getWorkforcemanagementManagementunitsMuIdUsersUserIdTimeoffrequestsTimeoffrequestId**
> \PureCloudSDK\TimeOffRequest getWorkforcemanagementManagementunitsMuIdUsersUserIdTimeoffrequestsTimeoffrequestId($muId, $userId, $timeOffRequestId)

Get a time off request by id



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

// Configure OAuth2 access token for authorization: PureCloud Auth
PureCloudSDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new PureCloudSDK\Api\WorkforceManagementApi();
$muId = "muId_example"; // string | The muId of the management unit.
$userId = "userId_example"; // string | The userId to whom the Time Off Request applies.
$timeOffRequestId = "timeOffRequestId_example"; // string | Time Off Request Id

try {
    $result = $api_instance->getWorkforcemanagementManagementunitsMuIdUsersUserIdTimeoffrequestsTimeoffrequestId($muId, $userId, $timeOffRequestId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WorkforceManagementApi->getWorkforcemanagementManagementunitsMuIdUsersUserIdTimeoffrequestsTimeoffrequestId: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **muId** | **string**| The muId of the management unit. |
 **userId** | **string**| The userId to whom the Time Off Request applies. |
 **timeOffRequestId** | **string**| Time Off Request Id |

### Return type

[**\PureCloudSDK\TimeOffRequest**](../Model/TimeOffRequest.md)

### Authorization

[PureCloud Auth](../../README.md#PureCloud Auth)

### HTTP request headers

 - **Content-Type**: application/json
 - **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)

# **getWorkforcemanagementTimeoffrequests**
> \PureCloudSDK\TimeOffRequestList getWorkforcemanagementTimeoffrequests($recentlyReviewed)

Get a list of time off requests for the current user



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

// Configure OAuth2 access token for authorization: PureCloud Auth
PureCloudSDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new PureCloudSDK\Api\WorkforceManagementApi();
$recentlyReviewed = false; // bool | Limit results to requests that have been reviewed within the preceding 30 days

try {
    $result = $api_instance->getWorkforcemanagementTimeoffrequests($recentlyReviewed);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WorkforceManagementApi->getWorkforcemanagementTimeoffrequests: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **recentlyReviewed** | **bool**| Limit results to requests that have been reviewed within the preceding 30 days | [optional] [default to false]

### Return type

[**\PureCloudSDK\TimeOffRequestList**](../Model/TimeOffRequestList.md)

### Authorization

[PureCloud Auth](../../README.md#PureCloud Auth)

### HTTP request headers

 - **Content-Type**: application/json
 - **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)

# **getWorkforcemanagementTimeoffrequestsTimeoffrequestId**
> \PureCloudSDK\TimeOffRequest getWorkforcemanagementTimeoffrequestsTimeoffrequestId($timeOffRequestId)

Get a time off request for the current user by id



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

// Configure OAuth2 access token for authorization: PureCloud Auth
PureCloudSDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new PureCloudSDK\Api\WorkforceManagementApi();
$timeOffRequestId = "timeOffRequestId_example"; // string | Time Off Request Id

try {
    $result = $api_instance->getWorkforcemanagementTimeoffrequestsTimeoffrequestId($timeOffRequestId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WorkforceManagementApi->getWorkforcemanagementTimeoffrequestsTimeoffrequestId: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **timeOffRequestId** | **string**| Time Off Request Id |

### Return type

[**\PureCloudSDK\TimeOffRequest**](../Model/TimeOffRequest.md)

### Authorization

[PureCloud Auth](../../README.md#PureCloud Auth)

### HTTP request headers

 - **Content-Type**: application/json
 - **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)

# **patchWorkforcemanagementTimeoffrequestsTimeoffrequestId**
> patchWorkforcemanagementTimeoffrequestsTimeoffrequestId($timeOffRequestId, $body)

Mark a time off request for the current user as read or unread



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

// Configure OAuth2 access token for authorization: PureCloud Auth
PureCloudSDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new PureCloudSDK\Api\WorkforceManagementApi();
$timeOffRequestId = "timeOffRequestId_example"; // string | Time Off Request Id
$body = new \PureCloudSDK\TimeOffRequestPatch(); // \PureCloudSDK\TimeOffRequestPatch | 

try {
    $api_instance->patchWorkforcemanagementTimeoffrequestsTimeoffrequestId($timeOffRequestId, $body);
} catch (Exception $e) {
    echo 'Exception when calling WorkforceManagementApi->patchWorkforcemanagementTimeoffrequestsTimeoffrequestId: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **timeOffRequestId** | **string**| Time Off Request Id |
 **body** | [**\PureCloudSDK\TimeOffRequestPatch**](../Model/\PureCloudSDK\TimeOffRequestPatch.md)|  | [optional]

### Return type

void (empty response body)

### Authorization

[PureCloud Auth](../../README.md#PureCloud Auth)

### HTTP request headers

 - **Content-Type**: application/json
 - **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)

# **postWorkforcemanagementManagementunitsMuIdIntraday**
> \PureCloudSDK\IntradayResponse postWorkforcemanagementManagementunitsMuIdIntraday($muId, $body)

Get intraday data for the given date for the requested queueIds



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

// Configure OAuth2 access token for authorization: PureCloud Auth
PureCloudSDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new PureCloudSDK\Api\WorkforceManagementApi();
$muId = "muId_example"; // string | The muId of the management unit.
$body = new \PureCloudSDK\IntradayQueryDataCommand(); // \PureCloudSDK\IntradayQueryDataCommand | body

try {
    $result = $api_instance->postWorkforcemanagementManagementunitsMuIdIntraday($muId, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WorkforceManagementApi->postWorkforcemanagementManagementunitsMuIdIntraday: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **muId** | **string**| The muId of the management unit. |
 **body** | [**\PureCloudSDK\IntradayQueryDataCommand**](../Model/\PureCloudSDK\IntradayQueryDataCommand.md)| body | [optional]

### Return type

[**\PureCloudSDK\IntradayResponse**](../Model/IntradayResponse.md)

### Authorization

[PureCloud Auth](../../README.md#PureCloud Auth)

### HTTP request headers

 - **Content-Type**: application/json
 - **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)

# **postWorkforcemanagementManagementunitsMuIdSchedulesSearch**
> \PureCloudSDK\UserScheduleContainer postWorkforcemanagementManagementunitsMuIdSchedulesSearch($muId, $body)

Get user schedules within the given time range



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

// Configure OAuth2 access token for authorization: PureCloud Auth
PureCloudSDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new PureCloudSDK\Api\WorkforceManagementApi();
$muId = "muId_example"; // string | The muId of the management unit.
$body = new \PureCloudSDK\UserListScheduleRequestBody(); // \PureCloudSDK\UserListScheduleRequestBody | body

try {
    $result = $api_instance->postWorkforcemanagementManagementunitsMuIdSchedulesSearch($muId, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WorkforceManagementApi->postWorkforcemanagementManagementunitsMuIdSchedulesSearch: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **muId** | **string**| The muId of the management unit. |
 **body** | [**\PureCloudSDK\UserListScheduleRequestBody**](../Model/\PureCloudSDK\UserListScheduleRequestBody.md)| body | [optional]

### Return type

[**\PureCloudSDK\UserScheduleContainer**](../Model/UserScheduleContainer.md)

### Authorization

[PureCloud Auth](../../README.md#PureCloud Auth)

### HTTP request headers

 - **Content-Type**: application/json
 - **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)

# **postWorkforcemanagementSchedules**
> \PureCloudSDK\UserScheduleContainer postWorkforcemanagementSchedules($body)

Get a schedule for the current user



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

// Configure OAuth2 access token for authorization: PureCloud Auth
PureCloudSDK\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new PureCloudSDK\Api\WorkforceManagementApi();
$body = new \PureCloudSDK\CurrentUserScheduleRequestBody(); // \PureCloudSDK\CurrentUserScheduleRequestBody | body

try {
    $result = $api_instance->postWorkforcemanagementSchedules($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WorkforceManagementApi->postWorkforcemanagementSchedules: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**\PureCloudSDK\CurrentUserScheduleRequestBody**](../Model/\PureCloudSDK\CurrentUserScheduleRequestBody.md)| body | [optional]

### Return type

[**\PureCloudSDK\UserScheduleContainer**](../Model/UserScheduleContainer.md)

### Authorization

[PureCloud Auth](../../README.md#PureCloud Auth)

### HTTP request headers

 - **Content-Type**: application/json
 - **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)

