---
title: RoutingApi
---
## PureCloud::RoutingApi
All URIs are relative to *https://api.mypurecloud.com*
Method | Description
------------- | ------------- | -------------
[**delete_routing_email_domain**](RoutingApi.html#delete_routing_email_domain) | Delete a domain
[**delete_routing_email_domain_route**](RoutingApi.html#delete_routing_email_domain_route) | Delete a route
[**delete_routing_queue**](RoutingApi.html#delete_routing_queue) | Delete a queue
[**delete_routing_queue_user**](RoutingApi.html#delete_routing_queue_user) | Delete queue member
[**delete_routing_queue_wrapupcode**](RoutingApi.html#delete_routing_queue_wrapupcode) | Delete a wrap-up code from a queue
[**delete_routing_skill**](RoutingApi.html#delete_routing_skill) | Delete Routing Skill
[**delete_routing_sms_phonenumber**](RoutingApi.html#delete_routing_sms_phonenumber) | Delete a phone number provisioned for SMS.
[**delete_routing_utilization**](RoutingApi.html#delete_routing_utilization) | Delete utilization settings and revert to system defaults.
[**delete_routing_wrapupcode**](RoutingApi.html#delete_routing_wrapupcode) | Delete wrap-up code
[**delete_user_routinglanguage**](RoutingApi.html#delete_user_routinglanguage) | Remove routing language from user
[**delete_user_routingskill**](RoutingApi.html#delete_user_routingskill) | Remove routing skill from user
[**get_routing_email_domain**](RoutingApi.html#get_routing_email_domain) | Get domain
[**get_routing_email_domain_route**](RoutingApi.html#get_routing_email_domain_route) | Get a route
[**get_routing_email_domain_routes**](RoutingApi.html#get_routing_email_domain_routes) | Get routes
[**get_routing_email_domains**](RoutingApi.html#get_routing_email_domains) | Get domains
[**get_routing_email_setup**](RoutingApi.html#get_routing_email_setup) | Get email setup
[**get_routing_languages**](RoutingApi.html#get_routing_languages) | Get the list of supported languages.
[**get_routing_message_recipient**](RoutingApi.html#get_routing_message_recipient) | Get a recipient
[**get_routing_message_recipients**](RoutingApi.html#get_routing_message_recipients) | Get recipients
[**get_routing_queue**](RoutingApi.html#get_routing_queue) | Get details about this queue.
[**get_routing_queue_estimatedwaittime**](RoutingApi.html#get_routing_queue_estimatedwaittime) | Get Estimated Wait Time
[**get_routing_queue_mediatype_estimatedwaittime**](RoutingApi.html#get_routing_queue_mediatype_estimatedwaittime) | Get Estimated Wait Time
[**get_routing_queue_users**](RoutingApi.html#get_routing_queue_users) | Get the members of this queue
[**get_routing_queue_wrapupcodes**](RoutingApi.html#get_routing_queue_wrapupcodes) | Get the wrap-up codes for a queue
[**get_routing_queues**](RoutingApi.html#get_routing_queues) | Get list of queues.
[**get_routing_skill**](RoutingApi.html#get_routing_skill) | Get Routing Skill
[**get_routing_skills**](RoutingApi.html#get_routing_skills) | Get the list of routing skills.
[**get_routing_sms_availablephonenumbers**](RoutingApi.html#get_routing_sms_availablephonenumbers) | Get a list of available phone numbers for SMS provisioning.
[**get_routing_sms_phonenumber**](RoutingApi.html#get_routing_sms_phonenumber) | Get a phone number provisioned for SMS.
[**get_routing_sms_phonenumbers**](RoutingApi.html#get_routing_sms_phonenumbers) | Get a list of provisioned phone numbers.
[**get_routing_utilization**](RoutingApi.html#get_routing_utilization) | Get the utilization settings.
[**get_routing_wrapupcode**](RoutingApi.html#get_routing_wrapupcode) | Get details about this wrap-up code.
[**get_routing_wrapupcodes**](RoutingApi.html#get_routing_wrapupcodes) | Get list of wrapup codes.
[**get_user_routinglanguages**](RoutingApi.html#get_user_routinglanguages) | List routing language for user
[**get_user_routingskills**](RoutingApi.html#get_user_routingskills) | List routing skills for user
[**patch_routing_queue_user**](RoutingApi.html#patch_routing_queue_user) | Update the ring number of joined status for a User in a Queue
[**patch_routing_queue_users**](RoutingApi.html#patch_routing_queue_users) | Join or unjoin a set of users for a queue
[**patch_user_routinglanguage**](RoutingApi.html#patch_user_routinglanguage) | Update routing language proficiency or state.
[**post_analytics_queues_observations_query**](RoutingApi.html#post_analytics_queues_observations_query) | Query for queue observations
[**post_routing_email_domain_routes**](RoutingApi.html#post_routing_email_domain_routes) | Create a route
[**post_routing_email_domains**](RoutingApi.html#post_routing_email_domains) | Create a domain
[**post_routing_languages**](RoutingApi.html#post_routing_languages) | Create Language
[**post_routing_queue_users**](RoutingApi.html#post_routing_queue_users) | Bulk add or delete up to 100 queue members
[**post_routing_queue_wrapupcodes**](RoutingApi.html#post_routing_queue_wrapupcodes) | Add up to 100 wrap-up codes to a queue
[**post_routing_queues**](RoutingApi.html#post_routing_queues) | Create queue
[**post_routing_skills**](RoutingApi.html#post_routing_skills) | Create Skill
[**post_routing_sms_addresses**](RoutingApi.html#post_routing_sms_addresses) | Provision an Address for SMS
[**post_routing_sms_phonenumbers**](RoutingApi.html#post_routing_sms_phonenumbers) | Provision a phone number for SMS
[**post_routing_wrapupcodes**](RoutingApi.html#post_routing_wrapupcodes) | Create a wrap-up code
[**post_user_routinglanguages**](RoutingApi.html#post_user_routinglanguages) | Add routing language to user
[**post_user_routingskills**](RoutingApi.html#post_user_routingskills) | Add routing skill to user
[**put_routing_email_domain_route**](RoutingApi.html#put_routing_email_domain_route) | Update a route
[**put_routing_message_recipient**](RoutingApi.html#put_routing_message_recipient) | Update a recipient
[**put_routing_queue**](RoutingApi.html#put_routing_queue) | Update a queue
[**put_routing_sms_phonenumber**](RoutingApi.html#put_routing_sms_phonenumber) | Update a phone number provisioned for SMS.
[**put_routing_utilization**](RoutingApi.html#put_routing_utilization) | Update the utilization settings.
[**put_routing_wrapupcode**](RoutingApi.html#put_routing_wrapupcode) | Update wrap-up code
[**put_user_routingskill**](RoutingApi.html#put_user_routingskill) | Update routing skill proficiency or state.
{: class="table table-striped"}
## - delete_routing_email_domain(domain_id)
Delete a domain
Wraps DELETE /api/v2/routing/email/domains/{domainId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
domain_id = "domain_id_example" # String | domain ID
begin
#Delete a domain
api_instance.delete_routing_email_domain(domain_id)
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->delete_routing_email_domain: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**domain_id** | **String**| domain ID | |
{: class="table table-striped"}
### Return type
nil (empty response body)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## - delete_routing_email_domain_route(domain_name, route_id)
Delete a route
Wraps DELETE /api/v2/routing/email/domains/{domainName}/routes/{routeId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
domain_name = "domain_name_example" # String | email domain
route_id = "route_id_example" # String | route ID
begin
#Delete a route
api_instance.delete_routing_email_domain_route(domain_name, route_id)
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->delete_routing_email_domain_route: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**domain_name** | **String**| email domain | |
**route_id** | **String**| route ID | |
{: class="table table-striped"}
### Return type
nil (empty response body)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## - delete_routing_queue(queue_id, opts)
Delete a queue
Wraps DELETE /api/v2/routing/queues/{queueId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
queue_id = "queue_id_example" # String | Queue ID
opts = {
force_delete: true # BOOLEAN | forceDelete
}
begin
#Delete a queue
api_instance.delete_routing_queue(queue_id, opts)
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->delete_routing_queue: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**queue_id** | **String**| Queue ID | |
**force_delete** | **BOOLEAN**| forceDelete | [optional] |
{: class="table table-striped"}
### Return type
nil (empty response body)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## - delete_routing_queue_user(queue_id, member_id)
Delete queue member
Wraps DELETE /api/v2/routing/queues/{queueId}/users/{memberId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
queue_id = "queue_id_example" # String | Queue ID
member_id = "member_id_example" # String | Member ID
begin
#Delete queue member
api_instance.delete_routing_queue_user(queue_id, member_id)
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->delete_routing_queue_user: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**queue_id** | **String**| Queue ID | |
**member_id** | **String**| Member ID | |
{: class="table table-striped"}
### Return type
nil (empty response body)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## - delete_routing_queue_wrapupcode(queue_id, code_id)
Delete a wrap-up code from a queue
Wraps DELETE /api/v2/routing/queues/{queueId}/wrapupcodes/{codeId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
queue_id = "queue_id_example" # String | Queue ID
code_id = "code_id_example" # String | Code ID
begin
#Delete a wrap-up code from a queue
api_instance.delete_routing_queue_wrapupcode(queue_id, code_id)
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->delete_routing_queue_wrapupcode: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**queue_id** | **String**| Queue ID | |
**code_id** | **String**| Code ID | |
{: class="table table-striped"}
### Return type
nil (empty response body)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## - delete_routing_skill(skill_id)
Delete Routing Skill
Wraps DELETE /api/v2/routing/skills/{skillId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
skill_id = "skill_id_example" # String | Skill ID
begin
#Delete Routing Skill
api_instance.delete_routing_skill(skill_id)
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->delete_routing_skill: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**skill_id** | **String**| Skill ID | |
{: class="table table-striped"}
### Return type
nil (empty response body)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## - delete_routing_sms_phonenumber(address_id)
Delete a phone number provisioned for SMS.
Wraps DELETE /api/v2/routing/sms/phonenumbers/{addressId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
address_id = "address_id_example" # String | Address ID
begin
#Delete a phone number provisioned for SMS.
api_instance.delete_routing_sms_phonenumber(address_id)
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->delete_routing_sms_phonenumber: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**address_id** | **String**| Address ID | |
{: class="table table-striped"}
### Return type
nil (empty response body)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## - delete_routing_utilization
Delete utilization settings and revert to system defaults.
Wraps DELETE /api/v2/routing/utilization
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
begin
#Delete utilization settings and revert to system defaults.
api_instance.delete_routing_utilization
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->delete_routing_utilization: #{e}"
end
~~~
### Parameters
This endpoint does not need any parameter.
{: class="table table-striped"}
### Return type
nil (empty response body)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## - delete_routing_wrapupcode(code_id)
Delete wrap-up code
Wraps DELETE /api/v2/routing/wrapupcodes/{codeId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
code_id = "code_id_example" # String | Wrapup Code ID
begin
#Delete wrap-up code
api_instance.delete_routing_wrapupcode(code_id)
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->delete_routing_wrapupcode: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**code_id** | **String**| Wrapup Code ID | |
{: class="table table-striped"}
### Return type
nil (empty response body)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## - delete_user_routinglanguage(user_id, language_id)
Remove routing language from user
Wraps DELETE /api/v2/users/{userId}/routinglanguages/{languageId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
user_id = "user_id_example" # String | User ID
language_id = "language_id_example" # String | languageId
begin
#Remove routing language from user
api_instance.delete_user_routinglanguage(user_id, language_id)
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->delete_user_routinglanguage: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user_id** | **String**| User ID | |
**language_id** | **String**| languageId | |
{: class="table table-striped"}
### Return type
nil (empty response body)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## - delete_user_routingskill(user_id, skill_id)
Remove routing skill from user
Wraps DELETE /api/v2/users/{userId}/routingskills/{skillId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
user_id = "user_id_example" # String | User ID
skill_id = "skill_id_example" # String | skillId
begin
#Remove routing skill from user
api_instance.delete_user_routingskill(user_id, skill_id)
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->delete_user_routingskill: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user_id** | **String**| User ID | |
**skill_id** | **String**| skillId | |
{: class="table table-striped"}
### Return type
nil (empty response body)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**InboundDomain**](InboundDomain.html) get_routing_email_domain(domain_id)
Get domain
Wraps GET /api/v2/routing/email/domains/{domainId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
domain_id = "domain_id_example" # String | domain ID
begin
#Get domain
result = api_instance.get_routing_email_domain(domain_id)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_email_domain: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**domain_id** | **String**| domain ID | |
{: class="table table-striped"}
### Return type
[**InboundDomain**](InboundDomain.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**InboundRoute**](InboundRoute.html) get_routing_email_domain_route(domain_name, route_id)
Get a route
Wraps GET /api/v2/routing/email/domains/{domainName}/routes/{routeId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
domain_name = "domain_name_example" # String | email domain
route_id = "route_id_example" # String | route ID
begin
#Get a route
result = api_instance.get_routing_email_domain_route(domain_name, route_id)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_email_domain_route: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**domain_name** | **String**| email domain | |
**route_id** | **String**| route ID | |
{: class="table table-striped"}
### Return type
[**InboundRoute**](InboundRoute.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**InboundRouteEntityListing**](InboundRouteEntityListing.html) get_routing_email_domain_routes(domain_name, opts)
Get routes
Wraps GET /api/v2/routing/email/domains/{domainName}/routes
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
domain_name = "domain_name_example" # String | email domain
opts = {
page_size: 25, # Integer | Page size
page_number: 1, # Integer | Page number
pattern: "pattern_example" # String | Filter routes by the route's pattern property
}
begin
#Get routes
result = api_instance.get_routing_email_domain_routes(domain_name, opts)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_email_domain_routes: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**domain_name** | **String**| email domain | |
**page_size** | **Integer**| Page size | [optional] [default to 25] |
**page_number** | **Integer**| Page number | [optional] [default to 1] |
**pattern** | **String**| Filter routes by the route's pattern property | [optional] |
{: class="table table-striped"}
### Return type
[**InboundRouteEntityListing**](InboundRouteEntityListing.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**InboundDomainEntityListing**](InboundDomainEntityListing.html) get_routing_email_domains
Get domains
Wraps GET /api/v2/routing/email/domains
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
begin
#Get domains
result = api_instance.get_routing_email_domains
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_email_domains: #{e}"
end
~~~
### Parameters
This endpoint does not need any parameter.
{: class="table table-striped"}
### Return type
[**InboundDomainEntityListing**](InboundDomainEntityListing.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**EmailSetup**](EmailSetup.html) get_routing_email_setup
Get email setup
Wraps GET /api/v2/routing/email/setup
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
begin
#Get email setup
result = api_instance.get_routing_email_setup
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_email_setup: #{e}"
end
~~~
### Parameters
This endpoint does not need any parameter.
{: class="table table-striped"}
### Return type
[**EmailSetup**](EmailSetup.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**LanguageEntityListing**](LanguageEntityListing.html) get_routing_languages(opts)
Get the list of supported languages.
Wraps GET /api/v2/routing/languages
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
opts = {
page_size: 25, # Integer | Page size
page_number: 1, # Integer | Page number
sort_order: "ASC", # String | Ascending or descending sort order
name: "name_example" # String | Name
}
begin
#Get the list of supported languages.
result = api_instance.get_routing_languages(opts)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_languages: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**page_size** | **Integer**| Page size | [optional] [default to 25] |
**page_number** | **Integer**| Page number | [optional] [default to 1] |
**sort_order** | **String**| Ascending or descending sort order | [optional] [default to ASC]
**Values**: ascending, descending |
**name** | **String**| Name | [optional] |
{: class="table table-striped"}
### Return type
[**LanguageEntityListing**](LanguageEntityListing.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**Recipient**](Recipient.html) get_routing_message_recipient(recipient_id)
Get a recipient
Wraps GET /api/v2/routing/message/recipients/{recipientId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
recipient_id = "recipient_id_example" # String | Recipient ID
begin
#Get a recipient
result = api_instance.get_routing_message_recipient(recipient_id)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_message_recipient: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**recipient_id** | **String**| Recipient ID | |
{: class="table table-striped"}
### Return type
[**Recipient**](Recipient.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**RecipientListing**](RecipientListing.html) get_routing_message_recipients(opts)
Get recipients
Wraps GET /api/v2/routing/message/recipients
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
opts = {
page_size: 25, # Integer | Page size
page_number: 1 # Integer | Page number
}
begin
#Get recipients
result = api_instance.get_routing_message_recipients(opts)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_message_recipients: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**page_size** | **Integer**| Page size | [optional] [default to 25] |
**page_number** | **Integer**| Page number | [optional] [default to 1] |
{: class="table table-striped"}
### Return type
[**RecipientListing**](RecipientListing.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**Queue**](Queue.html) get_routing_queue(queue_id)
Get details about this queue.
Wraps GET /api/v2/routing/queues/{queueId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
queue_id = "queue_id_example" # String | Queue ID
begin
#Get details about this queue.
result = api_instance.get_routing_queue(queue_id)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_queue: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**queue_id** | **String**| Queue ID | |
{: class="table table-striped"}
### Return type
[**Queue**](Queue.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**EstimatedWaitTimePredictions**](EstimatedWaitTimePredictions.html) get_routing_queue_estimatedwaittime(queue_id, opts)
Get Estimated Wait Time
Wraps GET /api/v2/routing/queues/{queueId}/estimatedwaittime
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
queue_id = "queue_id_example" # String | queueId
opts = {
conversation_id: "conversation_id_example" # String | conversationId
}
begin
#Get Estimated Wait Time
result = api_instance.get_routing_queue_estimatedwaittime(queue_id, opts)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_queue_estimatedwaittime: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**queue_id** | **String**| queueId | |
**conversation_id** | **String**| conversationId | [optional] |
{: class="table table-striped"}
### Return type
[**EstimatedWaitTimePredictions**](EstimatedWaitTimePredictions.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**EstimatedWaitTimePredictions**](EstimatedWaitTimePredictions.html) get_routing_queue_mediatype_estimatedwaittime(queue_id, media_type)
Get Estimated Wait Time
Wraps GET /api/v2/routing/queues/{queueId}/mediatypes/{mediaType}/estimatedwaittime
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
queue_id = "queue_id_example" # String | queueId
media_type = "media_type_example" # String | mediaType
begin
#Get Estimated Wait Time
result = api_instance.get_routing_queue_mediatype_estimatedwaittime(queue_id, media_type)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_queue_mediatype_estimatedwaittime: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**queue_id** | **String**| queueId | |
**media_type** | **String**| mediaType | |
{: class="table table-striped"}
### Return type
[**EstimatedWaitTimePredictions**](EstimatedWaitTimePredictions.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**QueueMemberEntityListing**](QueueMemberEntityListing.html) get_routing_queue_users(queue_id, opts)
Get the members of this queue
Wraps GET /api/v2/routing/queues/{queueId}/users
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
queue_id = "queue_id_example" # String | Queue ID
opts = {
page_size: 25, # Integer | Page size
page_number: 1, # Integer | Page number
sort_by: "name", # String | Sort by
expand: ["expand_example"], # Array | Which fields, if any, to expand.
joined: true, # BOOLEAN | Filter by joined status
name: "name_example", # String | Filter by queue member name
profile_skills: ["profile_skills_example"], # Array | Filter by profile skill
skills: ["skills_example"], # Array | Filter by skill
languages: ["languages_example"], # Array | Filter by language
routing_status: ["routing_status_example"], # Array | Filter by routing status
presence: ["presence_example"] # Array | Filter by presence
}
begin
#Get the members of this queue
result = api_instance.get_routing_queue_users(queue_id, opts)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_queue_users: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**queue_id** | **String**| Queue ID | |
**page_size** | **Integer**| Page size | [optional] [default to 25] |
**page_number** | **Integer**| Page number | [optional] [default to 1] |
**sort_by** | **String**| Sort by | [optional] [default to name] |
**expand** | [**Array<String>**](String.html)| Which fields, if any, to expand. | [optional]
**Values**: routingStatus, presence, conversationSummary, outOfOffice, geolocation, station, authorization, profileSkills, locations, groups, date, geolocationsettings, organization, presencedefinitions, locationdefinitions, orgauthorization, favorites, superiors, directreports, adjacents, routingskills, routinglanguages, fieldconfigs, token, trustors |
**joined** | **BOOLEAN**| Filter by joined status | [optional] |
**name** | **String**| Filter by queue member name | [optional] |
**profile_skills** | [**Array<String>**](String.html)| Filter by profile skill | [optional] |
**skills** | [**Array<String>**](String.html)| Filter by skill | [optional] |
**languages** | [**Array<String>**](String.html)| Filter by language | [optional] |
**routing_status** | [**Array<String>**](String.html)| Filter by routing status | [optional] |
**presence** | [**Array<String>**](String.html)| Filter by presence | [optional] |
{: class="table table-striped"}
### Return type
[**QueueMemberEntityListing**](QueueMemberEntityListing.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**WrapupCodeEntityListing**](WrapupCodeEntityListing.html) get_routing_queue_wrapupcodes(queue_id)
Get the wrap-up codes for a queue
Wraps GET /api/v2/routing/queues/{queueId}/wrapupcodes
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
queue_id = "queue_id_example" # String | Queue ID
begin
#Get the wrap-up codes for a queue
result = api_instance.get_routing_queue_wrapupcodes(queue_id)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_queue_wrapupcodes: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**queue_id** | **String**| Queue ID | |
{: class="table table-striped"}
### Return type
[**WrapupCodeEntityListing**](WrapupCodeEntityListing.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**QueueEntityListing**](QueueEntityListing.html) get_routing_queues(opts)
Get list of queues.
Wraps GET /api/v2/routing/queues
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
opts = {
page_size: 25, # Integer | Page size
page_number: 1, # Integer | Page number
sort_by: "name", # String | Sort by
name: "name_example", # String | Name
active: true # BOOLEAN | Active
}
begin
#Get list of queues.
result = api_instance.get_routing_queues(opts)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_queues: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**page_size** | **Integer**| Page size | [optional] [default to 25] |
**page_number** | **Integer**| Page number | [optional] [default to 1] |
**sort_by** | **String**| Sort by | [optional] [default to name] |
**name** | **String**| Name | [optional] |
**active** | **BOOLEAN**| Active | [optional] |
{: class="table table-striped"}
### Return type
[**QueueEntityListing**](QueueEntityListing.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**RoutingSkill**](RoutingSkill.html) get_routing_skill(skill_id)
Get Routing Skill
Wraps GET /api/v2/routing/skills/{skillId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
skill_id = "skill_id_example" # String | Skill ID
begin
#Get Routing Skill
result = api_instance.get_routing_skill(skill_id)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_skill: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**skill_id** | **String**| Skill ID | |
{: class="table table-striped"}
### Return type
[**RoutingSkill**](RoutingSkill.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**SkillEntityListing**](SkillEntityListing.html) get_routing_skills(opts)
Get the list of routing skills.
Wraps GET /api/v2/routing/skills
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
opts = {
page_size: 25, # Integer | Page size
page_number: 1, # Integer | Page number
name: "name_example" # String | Filter for results that start with this value
}
begin
#Get the list of routing skills.
result = api_instance.get_routing_skills(opts)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_skills: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**page_size** | **Integer**| Page size | [optional] [default to 25] |
**page_number** | **Integer**| Page number | [optional] [default to 1] |
**name** | **String**| Filter for results that start with this value | [optional] |
{: class="table table-striped"}
### Return type
[**SkillEntityListing**](SkillEntityListing.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**SMSAvailablePhoneNumberEntityListing**](SMSAvailablePhoneNumberEntityListing.html) get_routing_sms_availablephonenumbers(country_code, phone_number_type, opts)
Get a list of available phone numbers for SMS provisioning.
This request will return up to 30 random phone numbers matching the criteria specified. To get additional phone numbers repeat the request.
Wraps GET /api/v2/routing/sms/availablephonenumbers
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
country_code = "country_code_example" # String | The ISO 3166-1 alpha-2 country code of the county for which available phone numbers should be returned
phone_number_type = "phone_number_type_example" # String | Type of available phone numbers searched
opts = {
region: "region_example", # String | Region/province/state that can be used to restrict the numbers returned
city: "city_example", # String | City that can be used to restrict the numbers returned
area_code: "area_code_example", # String | Area code that can be used to restrict the numbers returned
pattern: "pattern_example", # String | A pattern to match phone numbers. Valid characters are '*' and [0-9a-zA-Z]. The '*' character will match any single digit.
address_requirement: "address_requirement_example" # String | This indicates whether the phone number requires to have an Address registered.
}
begin
#Get a list of available phone numbers for SMS provisioning.
result = api_instance.get_routing_sms_availablephonenumbers(country_code, phone_number_type, opts)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_sms_availablephonenumbers: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**country_code** | **String**| The ISO 3166-1 alpha-2 country code of the county for which available phone numbers should be returned | |
**phone_number_type** | **String**| Type of available phone numbers searched |
**Values**: local, mobile, tollfree |
**region** | **String**| Region/province/state that can be used to restrict the numbers returned | [optional] |
**city** | **String**| City that can be used to restrict the numbers returned | [optional] |
**area_code** | **String**| Area code that can be used to restrict the numbers returned | [optional] |
**pattern** | **String**| A pattern to match phone numbers. Valid characters are '*' and [0-9a-zA-Z]. The '*' character will match any single digit. | [optional] |
**address_requirement** | **String**| This indicates whether the phone number requires to have an Address registered. | [optional]
**Values**: none, any, local, foreign |
{: class="table table-striped"}
### Return type
[**SMSAvailablePhoneNumberEntityListing**](SMSAvailablePhoneNumberEntityListing.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**SmsPhoneNumber**](SmsPhoneNumber.html) get_routing_sms_phonenumber(address_id)
Get a phone number provisioned for SMS.
Wraps GET /api/v2/routing/sms/phonenumbers/{addressId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
address_id = "address_id_example" # String | Address ID
begin
#Get a phone number provisioned for SMS.
result = api_instance.get_routing_sms_phonenumber(address_id)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_sms_phonenumber: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**address_id** | **String**| Address ID | |
{: class="table table-striped"}
### Return type
[**SmsPhoneNumber**](SmsPhoneNumber.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**SmsPhoneNumberEntityListing**](SmsPhoneNumberEntityListing.html) get_routing_sms_phonenumbers(opts)
Get a list of provisioned phone numbers.
Wraps GET /api/v2/routing/sms/phonenumbers
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
opts = {
phone_number: "phone_number_example", # String | Filter on phone number address. Allowable characters are the digits '0-9' and the wild card character '\\*'. If just digits are present, a contains search is done on the address pattern. For example, '317' could be matched anywhere in the address. An '\\*' will match multiple digits. For example, to match a specific area code within the US a pattern like '1317*' could be used.
phone_number_type: "phone_number_type_example", # String | Filter on phone number type
phone_number_status: "phone_number_status_example", # String | Filter on phone number status
page_size: 25, # Integer | Page size
page_number: 1 # Integer | Page number
}
begin
#Get a list of provisioned phone numbers.
result = api_instance.get_routing_sms_phonenumbers(opts)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_sms_phonenumbers: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**phone_number** | **String**| Filter on phone number address. Allowable characters are the digits '0-9' and the wild card character '\\*'. If just digits are present, a contains search is done on the address pattern. For example, '317' could be matched anywhere in the address. An '\\*' will match multiple digits. For example, to match a specific area code within the US a pattern like '1317*' could be used. | [optional] |
**phone_number_type** | **String**| Filter on phone number type | [optional]
**Values**: local, mobile, tollfree |
**phone_number_status** | **String**| Filter on phone number status | [optional]
**Values**: active, invalid, porting |
**page_size** | **Integer**| Page size | [optional] [default to 25] |
**page_number** | **Integer**| Page number | [optional] [default to 1] |
{: class="table table-striped"}
### Return type
[**SmsPhoneNumberEntityListing**](SmsPhoneNumberEntityListing.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**Utilization**](Utilization.html) get_routing_utilization
Get the utilization settings.
Wraps GET /api/v2/routing/utilization
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
begin
#Get the utilization settings.
result = api_instance.get_routing_utilization
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_utilization: #{e}"
end
~~~
### Parameters
This endpoint does not need any parameter.
{: class="table table-striped"}
### Return type
[**Utilization**](Utilization.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**WrapupCode**](WrapupCode.html) get_routing_wrapupcode(code_id)
Get details about this wrap-up code.
Wraps GET /api/v2/routing/wrapupcodes/{codeId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
code_id = "code_id_example" # String | Wrapup Code ID
begin
#Get details about this wrap-up code.
result = api_instance.get_routing_wrapupcode(code_id)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_wrapupcode: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**code_id** | **String**| Wrapup Code ID | |
{: class="table table-striped"}
### Return type
[**WrapupCode**](WrapupCode.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**WrapupCodeEntityListing**](WrapupCodeEntityListing.html) get_routing_wrapupcodes(opts)
Get list of wrapup codes.
Wraps GET /api/v2/routing/wrapupcodes
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
opts = {
page_size: 25, # Integer | Page size
page_number: 1, # Integer | Page number
name: "name_example", # String | Name
sort_by: "name" # String | Sort by
}
begin
#Get list of wrapup codes.
result = api_instance.get_routing_wrapupcodes(opts)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_routing_wrapupcodes: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**page_size** | **Integer**| Page size | [optional] [default to 25] |
**page_number** | **Integer**| Page number | [optional] [default to 1] |
**name** | **String**| Name | [optional] |
**sort_by** | **String**| Sort by | [optional] [default to name] |
{: class="table table-striped"}
### Return type
[**WrapupCodeEntityListing**](WrapupCodeEntityListing.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**UserLanguageEntityListing**](UserLanguageEntityListing.html) get_user_routinglanguages(user_id, opts)
List routing language for user
Wraps GET /api/v2/users/{userId}/routinglanguages
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
user_id = "user_id_example" # String | User ID
opts = {
page_size: 25, # Integer | Page size
page_number: 1, # Integer | Page number
sort_order: "ASC" # String | Ascending or descending sort order
}
begin
#List routing language for user
result = api_instance.get_user_routinglanguages(user_id, opts)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_user_routinglanguages: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user_id** | **String**| User ID | |
**page_size** | **Integer**| Page size | [optional] [default to 25] |
**page_number** | **Integer**| Page number | [optional] [default to 1] |
**sort_order** | **String**| Ascending or descending sort order | [optional] [default to ASC]
**Values**: ascending, descending |
{: class="table table-striped"}
### Return type
[**UserLanguageEntityListing**](UserLanguageEntityListing.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**UserSkillEntityListing**](UserSkillEntityListing.html) get_user_routingskills(user_id, opts)
List routing skills for user
Wraps GET /api/v2/users/{userId}/routingskills
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
user_id = "user_id_example" # String | User ID
opts = {
page_size: 25, # Integer | Page size
page_number: 1, # Integer | Page number
sort_order: "ASC" # String | Ascending or descending sort order
}
begin
#List routing skills for user
result = api_instance.get_user_routingskills(user_id, opts)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->get_user_routingskills: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user_id** | **String**| User ID | |
**page_size** | **Integer**| Page size | [optional] [default to 25] |
**page_number** | **Integer**| Page number | [optional] [default to 1] |
**sort_order** | **String**| Ascending or descending sort order | [optional] [default to ASC]
**Values**: ascending, descending |
{: class="table table-striped"}
### Return type
[**UserSkillEntityListing**](UserSkillEntityListing.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**QueueMember**](QueueMember.html) patch_routing_queue_user(queue_id, member_id, body)
Update the ring number of joined status for a User in a Queue
Wraps PATCH /api/v2/routing/queues/{queueId}/users/{memberId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
queue_id = "queue_id_example" # String | Queue ID
member_id = "member_id_example" # String | Member ID
body = PureCloud::QueueMember.new # QueueMember | Queue Member
begin
#Update the ring number of joined status for a User in a Queue
result = api_instance.patch_routing_queue_user(queue_id, member_id, body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->patch_routing_queue_user: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**queue_id** | **String**| Queue ID | |
**member_id** | **String**| Member ID | |
**body** | [**QueueMember**](QueueMember.html)| Queue Member | |
{: class="table table-striped"}
### Return type
[**QueueMember**](QueueMember.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**QueueMemberEntityListing**](QueueMemberEntityListing.html) patch_routing_queue_users(queue_id, body)
Join or unjoin a set of users for a queue
Wraps PATCH /api/v2/routing/queues/{queueId}/users
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
queue_id = "queue_id_example" # String | Queue ID
body = [PureCloud::QueueMember.new] # Array | Queue Members
begin
#Join or unjoin a set of users for a queue
result = api_instance.patch_routing_queue_users(queue_id, body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->patch_routing_queue_users: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**queue_id** | **String**| Queue ID | |
**body** | [**Array<QueueMember>**](QueueMember.html)| Queue Members | |
{: class="table table-striped"}
### Return type
[**QueueMemberEntityListing**](QueueMemberEntityListing.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**UserRoutingLanguage**](UserRoutingLanguage.html) patch_user_routinglanguage(user_id, language_id, body)
Update routing language proficiency or state.
Wraps PATCH /api/v2/users/{userId}/routinglanguages/{languageId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
user_id = "user_id_example" # String | User ID
language_id = "language_id_example" # String | languageId
body = PureCloud::UserRoutingLanguage.new # UserRoutingLanguage | Language
begin
#Update routing language proficiency or state.
result = api_instance.patch_user_routinglanguage(user_id, language_id, body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->patch_user_routinglanguage: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user_id** | **String**| User ID | |
**language_id** | **String**| languageId | |
**body** | [**UserRoutingLanguage**](UserRoutingLanguage.html)| Language | |
{: class="table table-striped"}
### Return type
[**UserRoutingLanguage**](UserRoutingLanguage.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**QualifierMappingObservationQueryResponse**](QualifierMappingObservationQueryResponse.html) post_analytics_queues_observations_query(body)
Query for queue observations
Wraps POST /api/v2/analytics/queues/observations/query
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
body = PureCloud::ObservationQuery.new # ObservationQuery | query
begin
#Query for queue observations
result = api_instance.post_analytics_queues_observations_query(body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->post_analytics_queues_observations_query: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**ObservationQuery**](ObservationQuery.html)| query | |
{: class="table table-striped"}
### Return type
[**QualifierMappingObservationQueryResponse**](QualifierMappingObservationQueryResponse.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**InboundRoute**](InboundRoute.html) post_routing_email_domain_routes(domain_name, body)
Create a route
Wraps POST /api/v2/routing/email/domains/{domainName}/routes
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
domain_name = "domain_name_example" # String | email domain
body = PureCloud::InboundRoute.new # InboundRoute | Route
begin
#Create a route
result = api_instance.post_routing_email_domain_routes(domain_name, body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->post_routing_email_domain_routes: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**domain_name** | **String**| email domain | |
**body** | [**InboundRoute**](InboundRoute.html)| Route | |
{: class="table table-striped"}
### Return type
[**InboundRoute**](InboundRoute.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**InboundDomain**](InboundDomain.html) post_routing_email_domains(body)
Create a domain
Wraps POST /api/v2/routing/email/domains
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
body = PureCloud::InboundDomain.new # InboundDomain | Domain
begin
#Create a domain
result = api_instance.post_routing_email_domains(body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->post_routing_email_domains: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**InboundDomain**](InboundDomain.html)| Domain | |
{: class="table table-striped"}
### Return type
[**InboundDomain**](InboundDomain.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**Language**](Language.html) post_routing_languages(body)
Create Language
Wraps POST /api/v2/routing/languages
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
body = PureCloud::Language.new # Language | Language
begin
#Create Language
result = api_instance.post_routing_languages(body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->post_routing_languages: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**Language**](Language.html)| Language | |
{: class="table table-striped"}
### Return type
[**Language**](Language.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -String** post_routing_queue_users(queue_id, body, opts)
Bulk add or delete up to 100 queue members
Wraps POST /api/v2/routing/queues/{queueId}/users
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
queue_id = "queue_id_example" # String | Queue ID
body = [PureCloud::QueueMember.new] # Array | Queue Members
opts = {
delete: false # BOOLEAN | True to delete queue members
}
begin
#Bulk add or delete up to 100 queue members
result = api_instance.post_routing_queue_users(queue_id, body, opts)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->post_routing_queue_users: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**queue_id** | **String**| Queue ID | |
**body** | [**Array<QueueMember>**](QueueMember.html)| Queue Members | |
**delete** | **BOOLEAN**| True to delete queue members | [optional] [default to false] |
{: class="table table-striped"}
### Return type
**String**
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**Array<WrapupCode>**](WrapupCode.html) post_routing_queue_wrapupcodes(queue_id, body)
Add up to 100 wrap-up codes to a queue
Wraps POST /api/v2/routing/queues/{queueId}/wrapupcodes
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
queue_id = "queue_id_example" # String | Queue ID
body = [PureCloud::WrapUpCodeReference.new] # Array | List of wrapup codes
begin
#Add up to 100 wrap-up codes to a queue
result = api_instance.post_routing_queue_wrapupcodes(queue_id, body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->post_routing_queue_wrapupcodes: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**queue_id** | **String**| Queue ID | |
**body** | [**Array<WrapUpCodeReference>**](WrapUpCodeReference.html)| List of wrapup codes | |
{: class="table table-striped"}
### Return type
[**Array<WrapupCode>**](WrapupCode.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**Queue**](Queue.html) post_routing_queues(body)
Create queue
Wraps POST /api/v2/routing/queues
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
body = PureCloud::CreateQueueRequest.new # CreateQueueRequest | Queue
begin
#Create queue
result = api_instance.post_routing_queues(body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->post_routing_queues: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**CreateQueueRequest**](CreateQueueRequest.html)| Queue | |
{: class="table table-striped"}
### Return type
[**Queue**](Queue.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**RoutingSkill**](RoutingSkill.html) post_routing_skills(body)
Create Skill
Wraps POST /api/v2/routing/skills
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
body = PureCloud::RoutingSkill.new # RoutingSkill | Skill
begin
#Create Skill
result = api_instance.post_routing_skills(body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->post_routing_skills: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**RoutingSkill**](RoutingSkill.html)| Skill | |
{: class="table table-striped"}
### Return type
[**RoutingSkill**](RoutingSkill.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**SmsPhoneNumber**](SmsPhoneNumber.html) post_routing_sms_addresses(body)
Provision an Address for SMS
Wraps POST /api/v2/routing/sms/addresses
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
body = PureCloud::SmsAddressProvision.new # SmsAddressProvision | SmsAddress
begin
#Provision an Address for SMS
result = api_instance.post_routing_sms_addresses(body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->post_routing_sms_addresses: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**SmsAddressProvision**](SmsAddressProvision.html)| SmsAddress | |
{: class="table table-striped"}
### Return type
[**SmsPhoneNumber**](SmsPhoneNumber.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**SmsPhoneNumber**](SmsPhoneNumber.html) post_routing_sms_phonenumbers(body)
Provision a phone number for SMS
Wraps POST /api/v2/routing/sms/phonenumbers
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
body = PureCloud::SmsPhoneNumberProvision.new # SmsPhoneNumberProvision | SmsPhoneNumber
begin
#Provision a phone number for SMS
result = api_instance.post_routing_sms_phonenumbers(body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->post_routing_sms_phonenumbers: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**SmsPhoneNumberProvision**](SmsPhoneNumberProvision.html)| SmsPhoneNumber | |
{: class="table table-striped"}
### Return type
[**SmsPhoneNumber**](SmsPhoneNumber.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**WrapupCode**](WrapupCode.html) post_routing_wrapupcodes(body)
Create a wrap-up code
Wraps POST /api/v2/routing/wrapupcodes
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
body = PureCloud::WrapupCode.new # WrapupCode | WrapupCode
begin
#Create a wrap-up code
result = api_instance.post_routing_wrapupcodes(body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->post_routing_wrapupcodes: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**WrapupCode**](WrapupCode.html)| WrapupCode | |
{: class="table table-striped"}
### Return type
[**WrapupCode**](WrapupCode.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**UserRoutingLanguage**](UserRoutingLanguage.html) post_user_routinglanguages(user_id, body)
Add routing language to user
Wraps POST /api/v2/users/{userId}/routinglanguages
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
user_id = "user_id_example" # String | User ID
body = PureCloud::UserRoutingLanguagePost.new # UserRoutingLanguagePost | Language
begin
#Add routing language to user
result = api_instance.post_user_routinglanguages(user_id, body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->post_user_routinglanguages: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user_id** | **String**| User ID | |
**body** | [**UserRoutingLanguagePost**](UserRoutingLanguagePost.html)| Language | |
{: class="table table-striped"}
### Return type
[**UserRoutingLanguage**](UserRoutingLanguage.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**UserRoutingSkill**](UserRoutingSkill.html) post_user_routingskills(user_id, body)
Add routing skill to user
Wraps POST /api/v2/users/{userId}/routingskills
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
user_id = "user_id_example" # String | User ID
body = PureCloud::UserRoutingSkillPost.new # UserRoutingSkillPost | Skill
begin
#Add routing skill to user
result = api_instance.post_user_routingskills(user_id, body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->post_user_routingskills: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user_id** | **String**| User ID | |
**body** | [**UserRoutingSkillPost**](UserRoutingSkillPost.html)| Skill | |
{: class="table table-striped"}
### Return type
[**UserRoutingSkill**](UserRoutingSkill.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**InboundRoute**](InboundRoute.html) put_routing_email_domain_route(domain_name, route_id, body)
Update a route
Wraps PUT /api/v2/routing/email/domains/{domainName}/routes/{routeId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
domain_name = "domain_name_example" # String | email domain
route_id = "route_id_example" # String | route ID
body = PureCloud::InboundRoute.new # InboundRoute | Route
begin
#Update a route
result = api_instance.put_routing_email_domain_route(domain_name, route_id, body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->put_routing_email_domain_route: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**domain_name** | **String**| email domain | |
**route_id** | **String**| route ID | |
**body** | [**InboundRoute**](InboundRoute.html)| Route | |
{: class="table table-striped"}
### Return type
[**InboundRoute**](InboundRoute.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**Recipient**](Recipient.html) put_routing_message_recipient(recipient_id, body)
Update a recipient
Wraps PUT /api/v2/routing/message/recipients/{recipientId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
recipient_id = "recipient_id_example" # String | Recipient ID
body = PureCloud::Recipient.new # Recipient | Recipient
begin
#Update a recipient
result = api_instance.put_routing_message_recipient(recipient_id, body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->put_routing_message_recipient: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**recipient_id** | **String**| Recipient ID | |
**body** | [**Recipient**](Recipient.html)| Recipient | |
{: class="table table-striped"}
### Return type
[**Recipient**](Recipient.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**Queue**](Queue.html) put_routing_queue(queue_id, body)
Update a queue
Wraps PUT /api/v2/routing/queues/{queueId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
queue_id = "queue_id_example" # String | Queue ID
body = PureCloud::Queue.new # Queue | Queue
begin
#Update a queue
result = api_instance.put_routing_queue(queue_id, body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->put_routing_queue: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**queue_id** | **String**| Queue ID | |
**body** | [**Queue**](Queue.html)| Queue | |
{: class="table table-striped"}
### Return type
[**Queue**](Queue.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**SmsPhoneNumber**](SmsPhoneNumber.html) put_routing_sms_phonenumber(address_id, body)
Update a phone number provisioned for SMS.
Wraps PUT /api/v2/routing/sms/phonenumbers/{addressId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
address_id = "address_id_example" # String | Address ID
body = PureCloud::SmsPhoneNumber.new # SmsPhoneNumber | SmsPhoneNumber
begin
#Update a phone number provisioned for SMS.
result = api_instance.put_routing_sms_phonenumber(address_id, body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->put_routing_sms_phonenumber: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**address_id** | **String**| Address ID | |
**body** | [**SmsPhoneNumber**](SmsPhoneNumber.html)| SmsPhoneNumber | |
{: class="table table-striped"}
### Return type
[**SmsPhoneNumber**](SmsPhoneNumber.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**Utilization**](Utilization.html) put_routing_utilization(body)
Update the utilization settings.
Wraps PUT /api/v2/routing/utilization
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
body = PureCloud::Utilization.new # Utilization | utilization
begin
#Update the utilization settings.
result = api_instance.put_routing_utilization(body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->put_routing_utilization: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**Utilization**](Utilization.html)| utilization | |
{: class="table table-striped"}
### Return type
[**Utilization**](Utilization.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**WrapupCode**](WrapupCode.html) put_routing_wrapupcode(code_id, body)
Update wrap-up code
Wraps PUT /api/v2/routing/wrapupcodes/{codeId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
code_id = "code_id_example" # String | Wrapup Code ID
body = PureCloud::WrapupCode.new # WrapupCode | WrapupCode
begin
#Update wrap-up code
result = api_instance.put_routing_wrapupcode(code_id, body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->put_routing_wrapupcode: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**code_id** | **String**| Wrapup Code ID | |
**body** | [**WrapupCode**](WrapupCode.html)| WrapupCode | |
{: class="table table-striped"}
### Return type
[**WrapupCode**](WrapupCode.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## -[**UserRoutingSkill**](UserRoutingSkill.html) put_user_routingskill(user_id, skill_id, body)
Update routing skill proficiency or state.
Wraps PUT /api/v2/users/{userId}/routingskills/{skillId}
### Example
~~~ruby
# load the gem
require 'purecloudplatformclientv2'
# setup authorization
@secret = ENV['PURECLOUD_SECRET']
@id = ENV['PURECLOUD_CLIENT_ID']
environment = "mypurecloud.com"
@authToken = PureCloud.authenticate_with_client_credentials @id, @secret, environment
PureCloud.configure do |config|
config.access_token = @authToken
end
api_instance = PureCloud::RoutingApi.new
user_id = "user_id_example" # String | User ID
skill_id = "skill_id_example" # String | skillId
body = PureCloud::UserRoutingSkill.new # UserRoutingSkill | Skill
begin
#Update routing skill proficiency or state.
result = api_instance.put_user_routingskill(user_id, skill_id, body)
p result
rescue PureCloud::ApiError => e
puts "Exception when calling RoutingApi->put_user_routingskill: #{e}"
end
~~~
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user_id** | **String**| User ID | |
**skill_id** | **String**| skillId | |
**body** | [**UserRoutingSkill**](UserRoutingSkill.html)| Skill | |
{: class="table table-striped"}
### Return type
[**UserRoutingSkill**](UserRoutingSkill.html)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json