docs/QualityApi.md in purecloudplatformclientv2-45.0.0 vs docs/QualityApi.md in purecloudplatformclientv2-46.0.0

- old
+ new

@@ -30,10 +30,11 @@ [**get_quality_forms_evaluations**](QualityApi.html#get_quality_forms_evaluations) | Get the list of evaluation forms [**get_quality_forms_survey**](QualityApi.html#get_quality_forms_survey) | Get a survey form [**get_quality_forms_survey_versions**](QualityApi.html#get_quality_forms_survey_versions) | Gets all the revisions for a specific survey. [**get_quality_forms_surveys**](QualityApi.html#get_quality_forms_surveys) | Get the list of survey forms [**get_quality_forms_surveys_bulk**](QualityApi.html#get_quality_forms_surveys_bulk) | Retrieve a list of survey forms by their ids +[**get_quality_forms_surveys_bulk_contexts**](QualityApi.html#get_quality_forms_surveys_bulk_contexts) | Retrieve a list of the latest form versions by context ids [**get_quality_keywordset**](QualityApi.html#get_quality_keywordset) | Get a keywordSet by id. [**get_quality_keywordsets**](QualityApi.html#get_quality_keywordsets) | Get the list of keyword sets [**get_quality_publishedform**](QualityApi.html#get_quality_publishedform) | Get the published evaluation forms. [**get_quality_publishedforms**](QualityApi.html#get_quality_publishedforms) | Get the published evaluation forms. [**get_quality_publishedforms_evaluation**](QualityApi.html#get_quality_publishedforms_evaluation) | Get the most recent published version of an evaluation form. @@ -1270,11 +1271,12 @@ page_number: 1, # Integer | The page number requested sort_by: "sort_by_example", # String | variable name requested to sort by next_page: "next_page_example", # String | next page token previous_page: "previous_page_example", # String | Previous page token expand: "expand_example", # String | Expand - name: "name_example" # String | Name + name: "name_example", # String | Name + sort_order: "sort_order_example" # String | Order to sort results, either asc or desc } begin #Get the list of evaluation forms result = api_instance.get_quality_forms(opts) @@ -1293,10 +1295,11 @@ **sort_by** | **String**| variable name requested to sort by | [optional] | **next_page** | **String**| next page token | [optional] | **previous_page** | **String**| Previous page token | [optional] | **expand** | **String**| Expand | [optional] | **name** | **String**| Name | [optional] | + **sort_order** | **String**| Order to sort results, either asc or desc | [optional] | {: class="table table-striped"} ### Return type @@ -1484,11 +1487,12 @@ page_number: 1, # Integer | The page number requested sort_by: "sort_by_example", # String | variable name requested to sort by next_page: "next_page_example", # String | next page token previous_page: "previous_page_example", # String | Previous page token expand: "expand_example", # String | Expand - name: "name_example" # String | Name + name: "name_example", # String | Name + sort_order: "sort_order_example" # String | Order to sort results, either asc or desc } begin #Get the list of evaluation forms result = api_instance.get_quality_forms_evaluations(opts) @@ -1507,10 +1511,11 @@ **sort_by** | **String**| variable name requested to sort by | [optional] | **next_page** | **String**| next page token | [optional] | **previous_page** | **String**| Previous page token | [optional] | **expand** | **String**| Expand | [optional] | **name** | **String**| Name | [optional] | + **sort_order** | **String**| Order to sort results, either asc or desc | [optional] | {: class="table table-striped"} ### Return type @@ -1698,11 +1703,12 @@ page_number: 1, # Integer | The page number requested sort_by: "sort_by_example", # String | variable name requested to sort by next_page: "next_page_example", # String | next page token previous_page: "previous_page_example", # String | Previous page token expand: "expand_example", # String | Expand - name: "name_example" # String | Name + name: "name_example", # String | Name + sort_order: "sort_order_example" # String | Order to sort results, either asc or desc } begin #Get the list of survey forms result = api_instance.get_quality_forms_surveys(opts) @@ -1721,10 +1727,11 @@ **sort_by** | **String**| variable name requested to sort by | [optional] | **next_page** | **String**| next page token | [optional] | **previous_page** | **String**| Previous page token | [optional] | **expand** | **String**| Expand | [optional] | **name** | **String**| Name | [optional] | + **sort_order** | **String**| Order to sort results, either asc or desc | [optional] | {: class="table table-striped"} ### Return type @@ -1737,11 +1744,11 @@ <a name="get_quality_forms_surveys_bulk"></a> -## -[**SurveyFormEntityListing**](SurveyFormEntityListing.html) get_quality_forms_surveys_bulk(ids) +## -[**SurveyFormEntityListing**](SurveyFormEntityListing.html) get_quality_forms_surveys_bulk(id) Retrieve a list of survey forms by their ids @@ -1769,26 +1776,95 @@ config.access_token = @authToken end api_instance = PureCloud::QualityApi.new -ids = ["ids_example"] # Array<String> | A comma-delimited list of valid survey form ids +id = ["id_example"] # Array<String> | A comma-delimited list of valid survey form ids begin #Retrieve a list of survey forms by their ids - result = api_instance.get_quality_forms_surveys_bulk(ids) + result = api_instance.get_quality_forms_surveys_bulk(id) p result rescue PureCloud::ApiError => e puts "Exception when calling QualityApi->get_quality_forms_surveys_bulk: #{e}" end ~~~ ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ids** | [**Array&lt;String&gt;**](String.html)| A comma-delimited list of valid survey form ids | | + **id** | [**Array&lt;String&gt;**](String.html)| A comma-delimited list of valid survey form ids | | +{: class="table table-striped"} + + +### Return type + +[**SurveyFormEntityListing**](SurveyFormEntityListing.html) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +<a name="get_quality_forms_surveys_bulk_contexts"></a> + +## -[**SurveyFormEntityListing**](SurveyFormEntityListing.html) get_quality_forms_surveys_bulk_contexts(context_id, opts) + + + +Retrieve a list of the latest form versions by context ids + + + +Wraps GET /api/v2/quality/forms/surveys/bulk/contexts + +Requires ANY permissions: + +* quality:surveyForm:view + + +### 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::QualityApi.new + +context_id = ["context_id_example"] # Array<String> | A comma-delimited list of valid survey form context ids + +opts = { + published: true # BOOLEAN | If true, the latest published version will be included. If false, only the unpublished version will be included. +} + +begin + #Retrieve a list of the latest form versions by context ids + result = api_instance.get_quality_forms_surveys_bulk_contexts(context_id, opts) + p result +rescue PureCloud::ApiError => e + puts "Exception when calling QualityApi->get_quality_forms_surveys_bulk_contexts: #{e}" +end +~~~ + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **context_id** | [**Array&lt;String&gt;**](String.html)| A comma-delimited list of valid survey form context ids | | + **published** | **BOOLEAN**| If true, the latest published version will be included. If false, only the unpublished version will be included. | [optional] [default to true] | {: class="table table-striped"} ### Return type