--- title: IntegrationsApi --- ## PureCloud::IntegrationsApi All URIs are relative to *https://api.mypurecloud.com* Method | Description ------------- | ------------- | ------------- [**delete_integration**](IntegrationsApi.html#delete_integration) | Delete integration. [**delete_integrations_action**](IntegrationsApi.html#delete_integrations_action) | Delete an Action [**delete_integrations_action_draft**](IntegrationsApi.html#delete_integrations_action_draft) | Delete a Draft [**delete_integrations_credential**](IntegrationsApi.html#delete_integrations_credential) | Delete a set of credentials [**get_integration**](IntegrationsApi.html#get_integration) | Get integration. [**get_integration_config_current**](IntegrationsApi.html#get_integration_config_current) | Get integration configuration. [**get_integrations**](IntegrationsApi.html#get_integrations) | List integrations [**get_integrations_action**](IntegrationsApi.html#get_integrations_action) | Retrieves a single Action matching id. [**get_integrations_action_draft**](IntegrationsApi.html#get_integrations_action_draft) | Retrieve a Draft [**get_integrations_action_draft_schema**](IntegrationsApi.html#get_integrations_action_draft_schema) | Retrieve schema for a Draft based on filename. [**get_integrations_action_draft_template**](IntegrationsApi.html#get_integrations_action_draft_template) | Retrieve templates for a Draft based on filename. [**get_integrations_action_draft_validation**](IntegrationsApi.html#get_integrations_action_draft_validation) | Validate current Draft configuration. [**get_integrations_action_schema**](IntegrationsApi.html#get_integrations_action_schema) | Retrieve schema for an action based on filename. [**get_integrations_action_template**](IntegrationsApi.html#get_integrations_action_template) | Retrieve text of templates for an action based on filename. [**get_integrations_actions**](IntegrationsApi.html#get_integrations_actions) | Retrieves all actions associated with filters passed in via query param. [**get_integrations_actions_categories**](IntegrationsApi.html#get_integrations_actions_categories) | Retrieves all categories of available Actions [**get_integrations_actions_drafts**](IntegrationsApi.html#get_integrations_actions_drafts) | Retrieves all action drafts associated with the filters passed in via query param. [**get_integrations_clientapps**](IntegrationsApi.html#get_integrations_clientapps) | List permitted client app integrations for the logged in user [**get_integrations_credential**](IntegrationsApi.html#get_integrations_credential) | Get a single credential with sensitive fields redacted [**get_integrations_credentials**](IntegrationsApi.html#get_integrations_credentials) | List multiple sets of credentials [**get_integrations_credentials_types**](IntegrationsApi.html#get_integrations_credentials_types) | List all credential types [**get_integrations_eventlog**](IntegrationsApi.html#get_integrations_eventlog) | List all events [**get_integrations_eventlog_event_id**](IntegrationsApi.html#get_integrations_eventlog_event_id) | Get a single event [**get_integrations_type**](IntegrationsApi.html#get_integrations_type) | Get integration type. [**get_integrations_type_configschema**](IntegrationsApi.html#get_integrations_type_configschema) | Get properties config schema for an integration type. [**get_integrations_types**](IntegrationsApi.html#get_integrations_types) | List integration types [**patch_integration**](IntegrationsApi.html#patch_integration) | Update an integration. [**patch_integrations_action**](IntegrationsApi.html#patch_integrations_action) | Patch an Action [**patch_integrations_action_draft**](IntegrationsApi.html#patch_integrations_action_draft) | Update an existing Draft [**post_integrations**](IntegrationsApi.html#post_integrations) | Create an integration. [**post_integrations_action_draft**](IntegrationsApi.html#post_integrations_action_draft) | Create a new Draft from existing Action [**post_integrations_action_draft_publish**](IntegrationsApi.html#post_integrations_action_draft_publish) | Publish a Draft and make it the active Action configuration [**post_integrations_action_draft_test**](IntegrationsApi.html#post_integrations_action_draft_test) | Test the execution of a draft. Responses will show execution steps broken out with intermediate results to help in debugging. [**post_integrations_action_execute**](IntegrationsApi.html#post_integrations_action_execute) | Execute Action and return response from 3rd party. Responses will follow the schemas defined on the Action for success and error. [**post_integrations_action_test**](IntegrationsApi.html#post_integrations_action_test) | Test the execution of an action. Responses will show execution steps broken out with intermediate results to help in debugging. [**post_integrations_actions**](IntegrationsApi.html#post_integrations_actions) | Create a new Action [**post_integrations_actions_drafts**](IntegrationsApi.html#post_integrations_actions_drafts) | Create a new Draft [**post_integrations_credentials**](IntegrationsApi.html#post_integrations_credentials) | Create a set of credentials [**post_integrations_workforcemanagement_vendorconnection**](IntegrationsApi.html#post_integrations_workforcemanagement_vendorconnection) | Add a vendor connection [**put_integration_config_current**](IntegrationsApi.html#put_integration_config_current) | Update integration configuration. [**put_integrations_credential**](IntegrationsApi.html#put_integrations_credential) | Update a set of credentials {: class="table table-striped"} ## -[**Integration**](Integration.html) delete_integration(integration_id) Delete integration. Wraps DELETE /api/v2/integrations/{integrationId} ### 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::IntegrationsApi.new integration_id = "integration_id_example" # String | Integration Id begin #Delete integration. result = api_instance.delete_integration(integration_id) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->delete_integration: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **integration_id** | **String**| Integration Id | | {: class="table table-striped"} ### Return type [**Integration**](Integration.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## - delete_integrations_action(action_id) Delete an Action Wraps DELETE /api/v2/integrations/actions/{actionId} ### 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::IntegrationsApi.new action_id = "action_id_example" # String | actionId begin #Delete an Action api_instance.delete_integrations_action(action_id) rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->delete_integrations_action: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **action_id** | **String**| actionId | | {: class="table table-striped"} ### Return type nil (empty response body) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## - delete_integrations_action_draft(action_id) Delete a Draft Wraps DELETE /api/v2/integrations/actions/{actionId}/draft ### 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::IntegrationsApi.new action_id = "action_id_example" # String | actionId begin #Delete a Draft api_instance.delete_integrations_action_draft(action_id) rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->delete_integrations_action_draft: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **action_id** | **String**| actionId | | {: class="table table-striped"} ### Return type nil (empty response body) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## - delete_integrations_credential(credential_id) Delete a set of credentials Wraps DELETE /api/v2/integrations/credentials/{credentialId} ### 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::IntegrationsApi.new credential_id = "credential_id_example" # String | Credential ID begin #Delete a set of credentials api_instance.delete_integrations_credential(credential_id) rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->delete_integrations_credential: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **credential_id** | **String**| Credential ID | | {: class="table table-striped"} ### Return type nil (empty response body) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**Integration**](Integration.html) get_integration(integration_id, opts) Get integration. Wraps GET /api/v2/integrations/{integrationId} ### 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::IntegrationsApi.new integration_id = "integration_id_example" # String | Integration Id opts = { page_size: 25, # Integer | The total page size requested page_number: 1, # Integer | The page number requested sort_by: "sort_by_example", # String | variable name requested to sort by expand: ["expand_example"], # Array | variable name requested by expand list next_page: "next_page_example", # String | next page token previous_page: "previous_page_example" # String | Previous page token } begin #Get integration. result = api_instance.get_integration(integration_id, opts) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integration: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **integration_id** | **String**| Integration Id | | **page_size** | **Integer**| The total page size requested | [optional] [default to 25] | **page_number** | **Integer**| The page number requested | [optional] [default to 1] | **sort_by** | **String**| variable name requested to sort by | [optional] | **expand** | [**Array<String>**](String.html)| variable name requested by expand list | [optional] | **next_page** | **String**| next page token | [optional] | **previous_page** | **String**| Previous page token | [optional] | {: class="table table-striped"} ### Return type [**Integration**](Integration.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**IntegrationConfiguration**](IntegrationConfiguration.html) get_integration_config_current(integration_id) Get integration configuration. Wraps GET /api/v2/integrations/{integrationId}/config/current ### 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::IntegrationsApi.new integration_id = "integration_id_example" # String | Integration Id begin #Get integration configuration. result = api_instance.get_integration_config_current(integration_id) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integration_config_current: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **integration_id** | **String**| Integration Id | | {: class="table table-striped"} ### Return type [**IntegrationConfiguration**](IntegrationConfiguration.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**IntegrationEntityListing**](IntegrationEntityListing.html) get_integrations(opts) List integrations Wraps GET /api/v2/integrations ### 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::IntegrationsApi.new opts = { page_size: 25, # Integer | The total page size requested page_number: 1, # Integer | The page number requested sort_by: "sort_by_example", # String | variable name requested to sort by expand: ["expand_example"], # Array | variable name requested by expand list next_page: "next_page_example", # String | next page token previous_page: "previous_page_example" # String | Previous page token } begin #List integrations result = api_instance.get_integrations(opts) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integrations: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **page_size** | **Integer**| The total page size requested | [optional] [default to 25] | **page_number** | **Integer**| The page number requested | [optional] [default to 1] | **sort_by** | **String**| variable name requested to sort by | [optional] | **expand** | [**Array<String>**](String.html)| variable name requested by expand list | [optional] | **next_page** | **String**| next page token | [optional] | **previous_page** | **String**| Previous page token | [optional] | {: class="table table-striped"} ### Return type [**IntegrationEntityListing**](IntegrationEntityListing.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**Action**](Action.html) get_integrations_action(action_id, opts) Retrieves a single Action matching id. Wraps GET /api/v2/integrations/actions/{actionId} ### 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::IntegrationsApi.new action_id = "action_id_example" # String | actionId opts = { expand: "expand_example", # String | Indicates fields of the response which should be expanded. include_config: false # BOOLEAN | Show config when available } begin #Retrieves a single Action matching id. result = api_instance.get_integrations_action(action_id, opts) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integrations_action: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **action_id** | **String**| actionId | | **expand** | **String**| Indicates fields of the response which should be expanded. | [optional]
**Values**: contract | **include_config** | **BOOLEAN**| Show config when available | [optional] [default to false] | {: class="table table-striped"} ### Return type [**Action**](Action.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**Action**](Action.html) get_integrations_action_draft(action_id, opts) Retrieve a Draft Wraps GET /api/v2/integrations/actions/{actionId}/draft ### 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::IntegrationsApi.new action_id = "action_id_example" # String | actionId opts = { expand: "expand_example", # String | Indicates fields of the response which should be expanded. include_config: false # BOOLEAN | Show config when available } begin #Retrieve a Draft result = api_instance.get_integrations_action_draft(action_id, opts) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integrations_action_draft: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **action_id** | **String**| actionId | | **expand** | **String**| Indicates fields of the response which should be expanded. | [optional]
**Values**: contract | **include_config** | **BOOLEAN**| Show config when available | [optional] [default to false] | {: class="table table-striped"} ### Return type [**Action**](Action.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**JsonSchemaDocument**](JsonSchemaDocument.html) get_integrations_action_draft_schema(action_id, file_name) Retrieve schema for a Draft based on filename. Wraps GET /api/v2/integrations/actions/{actionId}/draft/schemas/{fileName} ### 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::IntegrationsApi.new action_id = "action_id_example" # String | actionId file_name = "file_name_example" # String | Name of schema file to be retrieved for this draft. begin #Retrieve schema for a Draft based on filename. result = api_instance.get_integrations_action_draft_schema(action_id, file_name) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integrations_action_draft_schema: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **action_id** | **String**| actionId | | **file_name** | **String**| Name of schema file to be retrieved for this draft. | | {: class="table table-striped"} ### Return type [**JsonSchemaDocument**](JsonSchemaDocument.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -String** get_integrations_action_draft_template(action_id, file_name) Retrieve templates for a Draft based on filename. Wraps GET /api/v2/integrations/actions/{actionId}/draft/templates/{fileName} ### 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::IntegrationsApi.new action_id = "action_id_example" # String | actionId file_name = "file_name_example" # String | Name of template file to be retrieved for this action draft. begin #Retrieve templates for a Draft based on filename. result = api_instance.get_integrations_action_draft_template(action_id, file_name) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integrations_action_draft_template: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **action_id** | **String**| actionId | | **file_name** | **String**| Name of template file to be retrieved for this action draft. | | {: class="table table-striped"} ### Return type **String** ### HTTP request headers - **Content-Type**: application/json - **Accept**: text/plain ## -[**DraftValidationResult**](DraftValidationResult.html) get_integrations_action_draft_validation(action_id) Validate current Draft configuration. Wraps GET /api/v2/integrations/actions/{actionId}/draft/validation ### 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::IntegrationsApi.new action_id = "action_id_example" # String | actionId begin #Validate current Draft configuration. result = api_instance.get_integrations_action_draft_validation(action_id) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integrations_action_draft_validation: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **action_id** | **String**| actionId | | {: class="table table-striped"} ### Return type [**DraftValidationResult**](DraftValidationResult.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**JsonSchemaDocument**](JsonSchemaDocument.html) get_integrations_action_schema(action_id, file_name) Retrieve schema for an action based on filename. Wraps GET /api/v2/integrations/actions/{actionId}/schemas/{fileName} ### 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::IntegrationsApi.new action_id = "action_id_example" # String | actionId file_name = "file_name_example" # String | Name of schema file to be retrieved for this action. begin #Retrieve schema for an action based on filename. result = api_instance.get_integrations_action_schema(action_id, file_name) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integrations_action_schema: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **action_id** | **String**| actionId | | **file_name** | **String**| Name of schema file to be retrieved for this action. | | {: class="table table-striped"} ### Return type [**JsonSchemaDocument**](JsonSchemaDocument.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -String** get_integrations_action_template(action_id, file_name) Retrieve text of templates for an action based on filename. Wraps GET /api/v2/integrations/actions/{actionId}/templates/{fileName} ### 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::IntegrationsApi.new action_id = "action_id_example" # String | actionId file_name = "file_name_example" # String | Name of template file to be retrieved for this action. begin #Retrieve text of templates for an action based on filename. result = api_instance.get_integrations_action_template(action_id, file_name) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integrations_action_template: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **action_id** | **String**| actionId | | **file_name** | **String**| Name of template file to be retrieved for this action. | | {: class="table table-striped"} ### Return type **String** ### HTTP request headers - **Content-Type**: application/json - **Accept**: text/plain ## -[**ActionEntityListing**](ActionEntityListing.html) get_integrations_actions(opts) Retrieves all actions associated with filters passed in via query param. Wraps GET /api/v2/integrations/actions ### 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::IntegrationsApi.new opts = { category: "category_example", # String | Filter by category name secure: "secure_example", # String | Filter to only include secure actions. True will only include actions marked secured. False will include only unsecure actions. Do not use filter if you want all Actions. include_auth_actions: "include_auth_actions_example", # String | Whether or not to include authentication actions in the response. These actions are not directly executable. Some integrations create them and will run them as needed to refresh authentication information for other actions. page_size: 25, # Integer | The total page size requested page_number: 1, # Integer | The page number requested sort_by: "sort_by_example", # String | variable name requested to sort by expand: ["expand_example"], # Array | variable name requested by expand list next_page: "next_page_example", # String | next page token previous_page: "previous_page_example" # String | Previous page token } begin #Retrieves all actions associated with filters passed in via query param. result = api_instance.get_integrations_actions(opts) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integrations_actions: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **category** | **String**| Filter by category name | [optional] | **secure** | **String**| Filter to only include secure actions. True will only include actions marked secured. False will include only unsecure actions. Do not use filter if you want all Actions. | [optional]
**Values**: true, false | **include_auth_actions** | **String**| Whether or not to include authentication actions in the response. These actions are not directly executable. Some integrations create them and will run them as needed to refresh authentication information for other actions. | [optional]
**Values**: true, false | **page_size** | **Integer**| The total page size requested | [optional] [default to 25] | **page_number** | **Integer**| The page number requested | [optional] [default to 1] | **sort_by** | **String**| variable name requested to sort by | [optional] | **expand** | [**Array<String>**](String.html)| variable name requested by expand list | [optional] | **next_page** | **String**| next page token | [optional] | **previous_page** | **String**| Previous page token | [optional] | {: class="table table-striped"} ### Return type [**ActionEntityListing**](ActionEntityListing.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**CategoryEntityListing**](CategoryEntityListing.html) get_integrations_actions_categories(opts) Retrieves all categories of available Actions Wraps GET /api/v2/integrations/actions/categories ### 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::IntegrationsApi.new opts = { secure: "secure_example", # String | Filter to only include/exclude Action categories based on if they are considered secure. True will only include categories with Actions marked secured. False will only include categories of unsecured Actions. page_size: 25, # Integer | The total page size requested page_number: 1, # Integer | The page number requested sort_by: "sort_by_example", # String | variable name requested to sort by expand: ["expand_example"], # Array | variable name requested by expand list next_page: "next_page_example", # String | next page token previous_page: "previous_page_example" # String | Previous page token } begin #Retrieves all categories of available Actions result = api_instance.get_integrations_actions_categories(opts) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integrations_actions_categories: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **secure** | **String**| Filter to only include/exclude Action categories based on if they are considered secure. True will only include categories with Actions marked secured. False will only include categories of unsecured Actions. | [optional]
**Values**: true, false | **page_size** | **Integer**| The total page size requested | [optional] [default to 25] | **page_number** | **Integer**| The page number requested | [optional] [default to 1] | **sort_by** | **String**| variable name requested to sort by | [optional] | **expand** | [**Array<String>**](String.html)| variable name requested by expand list | [optional] | **next_page** | **String**| next page token | [optional] | **previous_page** | **String**| Previous page token | [optional] | {: class="table table-striped"} ### Return type [**CategoryEntityListing**](CategoryEntityListing.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**ActionEntityListing**](ActionEntityListing.html) get_integrations_actions_drafts(opts) Retrieves all action drafts associated with the filters passed in via query param. Wraps GET /api/v2/integrations/actions/drafts ### 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::IntegrationsApi.new opts = { category: "category_example", # String | Filter by category name secure: "secure_example", # String | Filter to only include secure actions. True will only include actions marked secured. False will include only unsecure actions. Do not use filter if you want all Actions. include_auth_actions: "include_auth_actions_example", # String | Whether or not to include authentication actions in the response. These actions are not directly executable. Some integrations create them and will run them as needed to refresh authentication information for other actions. page_size: 25, # Integer | The total page size requested page_number: 1, # Integer | The page number requested sort_by: "sort_by_example", # String | variable name requested to sort by expand: ["expand_example"], # Array | variable name requested by expand list next_page: "next_page_example", # String | next page token previous_page: "previous_page_example" # String | Previous page token } begin #Retrieves all action drafts associated with the filters passed in via query param. result = api_instance.get_integrations_actions_drafts(opts) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integrations_actions_drafts: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **category** | **String**| Filter by category name | [optional] | **secure** | **String**| Filter to only include secure actions. True will only include actions marked secured. False will include only unsecure actions. Do not use filter if you want all Actions. | [optional]
**Values**: true, false | **include_auth_actions** | **String**| Whether or not to include authentication actions in the response. These actions are not directly executable. Some integrations create them and will run them as needed to refresh authentication information for other actions. | [optional]
**Values**: true, false | **page_size** | **Integer**| The total page size requested | [optional] [default to 25] | **page_number** | **Integer**| The page number requested | [optional] [default to 1] | **sort_by** | **String**| variable name requested to sort by | [optional] | **expand** | [**Array<String>**](String.html)| variable name requested by expand list | [optional] | **next_page** | **String**| next page token | [optional] | **previous_page** | **String**| Previous page token | [optional] | {: class="table table-striped"} ### Return type [**ActionEntityListing**](ActionEntityListing.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**ClientAppEntityListing**](ClientAppEntityListing.html) get_integrations_clientapps(opts) List permitted client app integrations for the logged in user Wraps GET /api/v2/integrations/clientapps ### 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::IntegrationsApi.new opts = { page_size: 25, # Integer | The total page size requested page_number: 1, # Integer | The page number requested sort_by: "sort_by_example", # String | variable name requested to sort by expand: ["expand_example"], # Array | variable name requested by expand list next_page: "next_page_example", # String | next page token previous_page: "previous_page_example" # String | Previous page token } begin #List permitted client app integrations for the logged in user result = api_instance.get_integrations_clientapps(opts) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integrations_clientapps: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **page_size** | **Integer**| The total page size requested | [optional] [default to 25] | **page_number** | **Integer**| The page number requested | [optional] [default to 1] | **sort_by** | **String**| variable name requested to sort by | [optional] | **expand** | [**Array<String>**](String.html)| variable name requested by expand list | [optional] | **next_page** | **String**| next page token | [optional] | **previous_page** | **String**| Previous page token | [optional] | {: class="table table-striped"} ### Return type [**ClientAppEntityListing**](ClientAppEntityListing.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**Credential**](Credential.html) get_integrations_credential(credential_id) Get a single credential with sensitive fields redacted Wraps GET /api/v2/integrations/credentials/{credentialId} ### 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::IntegrationsApi.new credential_id = "credential_id_example" # String | Credential ID begin #Get a single credential with sensitive fields redacted result = api_instance.get_integrations_credential(credential_id) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integrations_credential: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **credential_id** | **String**| Credential ID | | {: class="table table-striped"} ### Return type [**Credential**](Credential.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**CredentialInfoListing**](CredentialInfoListing.html) get_integrations_credentials(opts) List multiple sets of credentials Wraps GET /api/v2/integrations/credentials ### 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::IntegrationsApi.new opts = { page_number: 1, # Integer | Page number page_size: 25 # Integer | Page size } begin #List multiple sets of credentials result = api_instance.get_integrations_credentials(opts) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integrations_credentials: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **page_number** | **Integer**| Page number | [optional] [default to 1] | **page_size** | **Integer**| Page size | [optional] [default to 25] | {: class="table table-striped"} ### Return type [**CredentialInfoListing**](CredentialInfoListing.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**CredentialTypeListing**](CredentialTypeListing.html) get_integrations_credentials_types List all credential types Wraps GET /api/v2/integrations/credentials/types ### 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::IntegrationsApi.new begin #List all credential types result = api_instance.get_integrations_credentials_types p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integrations_credentials_types: #{e}" end ~~~ ### Parameters This endpoint does not need any parameter. {: class="table table-striped"} ### Return type [**CredentialTypeListing**](CredentialTypeListing.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**IntegrationEventEntityListing**](IntegrationEventEntityListing.html) get_integrations_eventlog(opts) List all events Wraps GET /api/v2/integrations/eventlog ### 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::IntegrationsApi.new opts = { page_size: 25, # Integer | Page size page_number: 1, # Integer | Page number sort_by: "timestamp", # String | Sort by sort_order: "descending", # String | Order by entity_id: "entity_id_example" # String | Include only events with this entity ID } begin #List all events result = api_instance.get_integrations_eventlog(opts) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integrations_eventlog: #{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 timestamp] | **sort_order** | **String**| Order by | [optional] [default to descending] | **entity_id** | **String**| Include only events with this entity ID | [optional] | {: class="table table-striped"} ### Return type [**IntegrationEventEntityListing**](IntegrationEventEntityListing.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**IntegrationEvent**](IntegrationEvent.html) get_integrations_eventlog_event_id(event_id) Get a single event Wraps GET /api/v2/integrations/eventlog/{eventId} ### 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::IntegrationsApi.new event_id = "event_id_example" # String | Event Id begin #Get a single event result = api_instance.get_integrations_eventlog_event_id(event_id) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integrations_eventlog_event_id: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **event_id** | **String**| Event Id | | {: class="table table-striped"} ### Return type [**IntegrationEvent**](IntegrationEvent.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**IntegrationType**](IntegrationType.html) get_integrations_type(type_id) Get integration type. Wraps GET /api/v2/integrations/types/{typeId} ### 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::IntegrationsApi.new type_id = "type_id_example" # String | Integration Type Id begin #Get integration type. result = api_instance.get_integrations_type(type_id) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integrations_type: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **type_id** | **String**| Integration Type Id | | {: class="table table-striped"} ### Return type [**IntegrationType**](IntegrationType.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**JsonSchemaDocument**](JsonSchemaDocument.html) get_integrations_type_configschema(type_id, config_type) Get properties config schema for an integration type. Wraps GET /api/v2/integrations/types/{typeId}/configschemas/{configType} ### 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::IntegrationsApi.new type_id = "type_id_example" # String | Integration Type Id config_type = "config_type_example" # String | Config schema type begin #Get properties config schema for an integration type. result = api_instance.get_integrations_type_configschema(type_id, config_type) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integrations_type_configschema: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **type_id** | **String**| Integration Type Id | | **config_type** | **String**| Config schema type |
**Values**: properties, advanced | {: class="table table-striped"} ### Return type [**JsonSchemaDocument**](JsonSchemaDocument.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**IntegrationTypeEntityListing**](IntegrationTypeEntityListing.html) get_integrations_types(opts) List integration types Wraps GET /api/v2/integrations/types ### 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::IntegrationsApi.new opts = { page_size: 25, # Integer | The total page size requested page_number: 1, # Integer | The page number requested sort_by: "sort_by_example", # String | variable name requested to sort by expand: ["expand_example"], # Array | variable name requested by expand list next_page: "next_page_example", # String | next page token previous_page: "previous_page_example" # String | Previous page token } begin #List integration types result = api_instance.get_integrations_types(opts) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->get_integrations_types: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **page_size** | **Integer**| The total page size requested | [optional] [default to 25] | **page_number** | **Integer**| The page number requested | [optional] [default to 1] | **sort_by** | **String**| variable name requested to sort by | [optional] | **expand** | [**Array<String>**](String.html)| variable name requested by expand list | [optional] | **next_page** | **String**| next page token | [optional] | **previous_page** | **String**| Previous page token | [optional] | {: class="table table-striped"} ### Return type [**IntegrationTypeEntityListing**](IntegrationTypeEntityListing.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**Integration**](Integration.html) patch_integration(integration_id, opts) Update an integration. Wraps PATCH /api/v2/integrations/{integrationId} ### 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::IntegrationsApi.new integration_id = "integration_id_example" # String | Integration Id opts = { body: PureCloud::Integration.new, # Integration | Integration Update page_size: 25, # Integer | The total page size requested page_number: 1, # Integer | The page number requested sort_by: "sort_by_example", # String | variable name requested to sort by expand: ["expand_example"], # Array | variable name requested by expand list next_page: "next_page_example", # String | next page token previous_page: "previous_page_example" # String | Previous page token } begin #Update an integration. result = api_instance.patch_integration(integration_id, opts) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->patch_integration: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **integration_id** | **String**| Integration Id | | **body** | [**Integration**](Integration.html)| Integration Update | [optional] | **page_size** | **Integer**| The total page size requested | [optional] [default to 25] | **page_number** | **Integer**| The page number requested | [optional] [default to 1] | **sort_by** | **String**| variable name requested to sort by | [optional] | **expand** | [**Array<String>**](String.html)| variable name requested by expand list | [optional] | **next_page** | **String**| next page token | [optional] | **previous_page** | **String**| Previous page token | [optional] | {: class="table table-striped"} ### Return type [**Integration**](Integration.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**Action**](Action.html) patch_integrations_action(action_id, body) Patch an Action Wraps PATCH /api/v2/integrations/actions/{actionId} ### 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::IntegrationsApi.new action_id = "action_id_example" # String | actionId body = PureCloud::UpdateActionInput.new # UpdateActionInput | Input used to patch the Action. begin #Patch an Action result = api_instance.patch_integrations_action(action_id, body) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->patch_integrations_action: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **action_id** | **String**| actionId | | **body** | [**UpdateActionInput**](UpdateActionInput.html)| Input used to patch the Action. | | {: class="table table-striped"} ### Return type [**Action**](Action.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**Action**](Action.html) patch_integrations_action_draft(action_id, body) Update an existing Draft Wraps PATCH /api/v2/integrations/actions/{actionId}/draft ### 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::IntegrationsApi.new action_id = "action_id_example" # String | actionId body = PureCloud::UpdateDraftInput.new # UpdateDraftInput | Input used to patch the Action Draft. begin #Update an existing Draft result = api_instance.patch_integrations_action_draft(action_id, body) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->patch_integrations_action_draft: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **action_id** | **String**| actionId | | **body** | [**UpdateDraftInput**](UpdateDraftInput.html)| Input used to patch the Action Draft. | | {: class="table table-striped"} ### Return type [**Action**](Action.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**Integration**](Integration.html) post_integrations(opts) Create an integration. Wraps POST /api/v2/integrations ### 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::IntegrationsApi.new opts = { body: PureCloud::CreateIntegrationRequest.new # CreateIntegrationRequest | Integration } begin #Create an integration. result = api_instance.post_integrations(opts) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->post_integrations: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**CreateIntegrationRequest**](CreateIntegrationRequest.html)| Integration | [optional] | {: class="table table-striped"} ### Return type [**Integration**](Integration.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**Action**](Action.html) post_integrations_action_draft(action_id) Create a new Draft from existing Action Wraps POST /api/v2/integrations/actions/{actionId}/draft ### 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::IntegrationsApi.new action_id = "action_id_example" # String | actionId begin #Create a new Draft from existing Action result = api_instance.post_integrations_action_draft(action_id) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->post_integrations_action_draft: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **action_id** | **String**| actionId | | {: class="table table-striped"} ### Return type [**Action**](Action.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**Action**](Action.html) post_integrations_action_draft_publish(action_id, body) Publish a Draft and make it the active Action configuration Wraps POST /api/v2/integrations/actions/{actionId}/draft/publish ### 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::IntegrationsApi.new action_id = "action_id_example" # String | actionId body = PureCloud::PublishDraftInput.new # PublishDraftInput | Input used to patch the Action. begin #Publish a Draft and make it the active Action configuration result = api_instance.post_integrations_action_draft_publish(action_id, body) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->post_integrations_action_draft_publish: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **action_id** | **String**| actionId | | **body** | [**PublishDraftInput**](PublishDraftInput.html)| Input used to patch the Action. | | {: class="table table-striped"} ### Return type [**Action**](Action.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**TestExecutionResult**](TestExecutionResult.html) post_integrations_action_draft_test(action_id, body) Test the execution of a draft. Responses will show execution steps broken out with intermediate results to help in debugging. Wraps POST /api/v2/integrations/actions/{actionId}/draft/test ### 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::IntegrationsApi.new action_id = "action_id_example" # String | actionId body = nil # Object | Map of parameters used for variable substitution. begin #Test the execution of a draft. Responses will show execution steps broken out with intermediate results to help in debugging. result = api_instance.post_integrations_action_draft_test(action_id, body) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->post_integrations_action_draft_test: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **action_id** | **String**| actionId | | **body** | **Object**| Map of parameters used for variable substitution. | | {: class="table table-striped"} ### Return type [**TestExecutionResult**](TestExecutionResult.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -Object** post_integrations_action_execute(action_id, body) Execute Action and return response from 3rd party. Responses will follow the schemas defined on the Action for success and error. Wraps POST /api/v2/integrations/actions/{actionId}/execute ### 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::IntegrationsApi.new action_id = "action_id_example" # String | actionId body = nil # Object | Map of parameters used for variable substitution. begin #Execute Action and return response from 3rd party. Responses will follow the schemas defined on the Action for success and error. result = api_instance.post_integrations_action_execute(action_id, body) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->post_integrations_action_execute: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **action_id** | **String**| actionId | | **body** | **Object**| Map of parameters used for variable substitution. | | {: class="table table-striped"} ### Return type **Object** ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**TestExecutionResult**](TestExecutionResult.html) post_integrations_action_test(action_id, body) Test the execution of an action. Responses will show execution steps broken out with intermediate results to help in debugging. Wraps POST /api/v2/integrations/actions/{actionId}/test ### 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::IntegrationsApi.new action_id = "action_id_example" # String | actionId body = nil # Object | Map of parameters used for variable substitution. begin #Test the execution of an action. Responses will show execution steps broken out with intermediate results to help in debugging. result = api_instance.post_integrations_action_test(action_id, body) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->post_integrations_action_test: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **action_id** | **String**| actionId | | **body** | **Object**| Map of parameters used for variable substitution. | | {: class="table table-striped"} ### Return type [**TestExecutionResult**](TestExecutionResult.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**Action**](Action.html) post_integrations_actions(body) Create a new Action Wraps POST /api/v2/integrations/actions ### 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::IntegrationsApi.new body = PureCloud::PostActionInput.new # PostActionInput | Input used to create Action. begin #Create a new Action result = api_instance.post_integrations_actions(body) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->post_integrations_actions: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**PostActionInput**](PostActionInput.html)| Input used to create Action. | | {: class="table table-striped"} ### Return type [**Action**](Action.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**Action**](Action.html) post_integrations_actions_drafts(body) Create a new Draft Wraps POST /api/v2/integrations/actions/drafts ### 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::IntegrationsApi.new body = PureCloud::PostActionInput.new # PostActionInput | Input used to create Action Draft. begin #Create a new Draft result = api_instance.post_integrations_actions_drafts(body) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->post_integrations_actions_drafts: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**PostActionInput**](PostActionInput.html)| Input used to create Action Draft. | | {: class="table table-striped"} ### Return type [**Action**](Action.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**CredentialInfo**](CredentialInfo.html) post_integrations_credentials(opts) Create a set of credentials Wraps POST /api/v2/integrations/credentials ### 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::IntegrationsApi.new opts = { body: PureCloud::Credential.new # Credential | Credential } begin #Create a set of credentials result = api_instance.post_integrations_credentials(opts) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->post_integrations_credentials: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**Credential**](Credential.html)| Credential | [optional] | {: class="table table-striped"} ### Return type [**CredentialInfo**](CredentialInfo.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**UserActionCategoryEntityListing**](UserActionCategoryEntityListing.html) post_integrations_workforcemanagement_vendorconnection(opts) Add a vendor connection Wraps POST /api/v2/integrations/workforcemanagement/vendorconnection ### 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::IntegrationsApi.new opts = { body: PureCloud::VendorConnectionRequest.new # VendorConnectionRequest | } begin #Add a vendor connection result = api_instance.post_integrations_workforcemanagement_vendorconnection(opts) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->post_integrations_workforcemanagement_vendorconnection: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**VendorConnectionRequest**](VendorConnectionRequest.html)| | [optional] | {: class="table table-striped"} ### Return type [**UserActionCategoryEntityListing**](UserActionCategoryEntityListing.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**IntegrationConfiguration**](IntegrationConfiguration.html) put_integration_config_current(integration_id, opts) Update integration configuration. Wraps PUT /api/v2/integrations/{integrationId}/config/current ### 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::IntegrationsApi.new integration_id = "integration_id_example" # String | Integration Id opts = { body: PureCloud::IntegrationConfiguration.new # IntegrationConfiguration | Integration Configuration } begin #Update integration configuration. result = api_instance.put_integration_config_current(integration_id, opts) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->put_integration_config_current: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **integration_id** | **String**| Integration Id | | **body** | [**IntegrationConfiguration**](IntegrationConfiguration.html)| Integration Configuration | [optional] | {: class="table table-striped"} ### Return type [**IntegrationConfiguration**](IntegrationConfiguration.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## -[**CredentialInfo**](CredentialInfo.html) put_integrations_credential(credential_id, opts) Update a set of credentials Wraps PUT /api/v2/integrations/credentials/{credentialId} ### 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::IntegrationsApi.new credential_id = "credential_id_example" # String | Credential ID opts = { body: PureCloud::Credential.new # Credential | Credential } begin #Update a set of credentials result = api_instance.put_integrations_credential(credential_id, opts) p result rescue PureCloud::ApiError => e puts "Exception when calling IntegrationsApi->put_integrations_credential: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **credential_id** | **String**| Credential ID | | **body** | [**Credential**](Credential.html)| Credential | [optional] | {: class="table table-striped"} ### Return type [**CredentialInfo**](CredentialInfo.html) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json