purecloudplatformclientv2 47.0.0 → 48.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/docs/AnalyticsApi.md +66 -0
  4. data/docs/AnalyticsSession.md +1 -1
  5. data/docs/AuthorizationApi.md +9 -5
  6. data/docs/Condition.md +4 -4
  7. data/docs/ContactColumnToDataActionFieldMapping.md +12 -0
  8. data/docs/ConversationProperties.md +21 -0
  9. data/docs/DataActionConditionPredicate.md +12 -0
  10. data/docs/GroupsApi.md +1 -1
  11. data/docs/OrgUser.md +1 -0
  12. data/docs/OutboundApi.md +2 -2
  13. data/docs/QualityApi.md +376 -0
  14. data/docs/RoutingApi.md +85 -12
  15. data/docs/ScorableSurvey.md +18 -0
  16. data/docs/SearchApi.md +2 -42
  17. data/docs/SuggestApi.md +2 -2
  18. data/docs/Survey.md +22 -0
  19. data/docs/SurveyFormAndScoringSet.md +14 -0
  20. data/docs/SurveyQuestionGroupScore.md +17 -0
  21. data/docs/SurveyQuestionScore.md +19 -0
  22. data/docs/SurveyScoringSet.md +15 -0
  23. data/docs/Token.md +13 -0
  24. data/docs/TrustUser.md +1 -0
  25. data/docs/User.md +1 -0
  26. data/docs/UserMe.md +1 -0
  27. data/docs/UsersApi.md +8 -8
  28. data/docs/UtilitiesApi.md +59 -0
  29. data/docs/ViewFilter.md +13 -0
  30. data/lib/purecloudplatformclientv2.rb +10 -0
  31. data/lib/purecloudplatformclientv2/api/alerting_api.rb +11 -11
  32. data/lib/purecloudplatformclientv2/api/analytics_api.rb +91 -26
  33. data/lib/purecloudplatformclientv2/api/architect_api.rb +81 -81
  34. data/lib/purecloudplatformclientv2/api/attributes_api.rb +6 -6
  35. data/lib/purecloudplatformclientv2/api/authorization_api.rb +45 -36
  36. data/lib/purecloudplatformclientv2/api/billing_api.rb +2 -2
  37. data/lib/purecloudplatformclientv2/api/content_management_api.rb +38 -38
  38. data/lib/purecloudplatformclientv2/api/conversations_api.rb +100 -100
  39. data/lib/purecloudplatformclientv2/api/external_contacts_api.rb +30 -30
  40. data/lib/purecloudplatformclientv2/api/fax_api.rb +6 -6
  41. data/lib/purecloudplatformclientv2/api/flows_api.rb +1 -1
  42. data/lib/purecloudplatformclientv2/api/general_data_protection_regulation_api.rb +4 -4
  43. data/lib/purecloudplatformclientv2/api/geolocation_api.rb +4 -4
  44. data/lib/purecloudplatformclientv2/api/greetings_api.rb +16 -16
  45. data/lib/purecloudplatformclientv2/api/groups_api.rb +14 -14
  46. data/lib/purecloudplatformclientv2/api/identity_provider_api.rb +28 -28
  47. data/lib/purecloudplatformclientv2/api/integrations_api.rb +41 -41
  48. data/lib/purecloudplatformclientv2/api/languages_api.rb +10 -10
  49. data/lib/purecloudplatformclientv2/api/license_api.rb +8 -8
  50. data/lib/purecloudplatformclientv2/api/locations_api.rb +4 -4
  51. data/lib/purecloudplatformclientv2/api/messaging_api.rb +14 -14
  52. data/lib/purecloudplatformclientv2/api/mobile_devices_api.rb +5 -5
  53. data/lib/purecloudplatformclientv2/api/notifications_api.rb +7 -7
  54. data/lib/purecloudplatformclientv2/api/o_auth_api.rb +6 -6
  55. data/lib/purecloudplatformclientv2/api/objects_api.rb +8 -8
  56. data/lib/purecloudplatformclientv2/api/organization_api.rb +4 -4
  57. data/lib/purecloudplatformclientv2/api/organization_authorization_api.rb +23 -23
  58. data/lib/purecloudplatformclientv2/api/outbound_api.rb +98 -98
  59. data/lib/purecloudplatformclientv2/api/presence_api.rb +9 -9
  60. data/lib/purecloudplatformclientv2/api/quality_api.rb +450 -52
  61. data/lib/purecloudplatformclientv2/api/recording_api.rb +37 -37
  62. data/lib/purecloudplatformclientv2/api/response_management_api.rb +11 -11
  63. data/lib/purecloudplatformclientv2/api/routing_api.rb +173 -70
  64. data/lib/purecloudplatformclientv2/api/scripts_api.rb +11 -11
  65. data/lib/purecloudplatformclientv2/api/search_api.rb +16 -16
  66. data/lib/purecloudplatformclientv2/api/stations_api.rb +5 -5
  67. data/lib/purecloudplatformclientv2/api/suggest_api.rb +4 -4
  68. data/lib/purecloudplatformclientv2/api/telephony_providers_edge_api.rb +125 -125
  69. data/lib/purecloudplatformclientv2/api/tokens_api.rb +2 -2
  70. data/lib/purecloudplatformclientv2/api/user_recordings_api.rb +6 -6
  71. data/lib/purecloudplatformclientv2/api/users_api.rb +61 -61
  72. data/lib/purecloudplatformclientv2/api/utilities_api.rb +58 -3
  73. data/lib/purecloudplatformclientv2/api/voicemail_api.rb +24 -24
  74. data/lib/purecloudplatformclientv2/api/web_chat_api.rb +8 -8
  75. data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +64 -64
  76. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  77. data/lib/purecloudplatformclientv2/configuration.rb +9 -2
  78. data/lib/purecloudplatformclientv2/models/aggregate_metric_data.rb +2 -2
  79. data/lib/purecloudplatformclientv2/models/analytics_query_predicate.rb +2 -2
  80. data/lib/purecloudplatformclientv2/models/analytics_session.rb +1 -1
  81. data/lib/purecloudplatformclientv2/models/condition.rb +6 -6
  82. data/lib/purecloudplatformclientv2/models/contact_column_to_data_action_field_mapping.rb +176 -0
  83. data/lib/purecloudplatformclientv2/models/conversation_properties.rb +410 -0
  84. data/lib/purecloudplatformclientv2/models/data_action_condition_predicate.rb +176 -0
  85. data/lib/purecloudplatformclientv2/models/observation_metric_data.rb +2 -2
  86. data/lib/purecloudplatformclientv2/models/org_user.rb +27 -1
  87. data/lib/purecloudplatformclientv2/models/scorable_survey.rb +343 -0
  88. data/lib/purecloudplatformclientv2/models/survey.rb +444 -0
  89. data/lib/purecloudplatformclientv2/models/survey_form_and_scoring_set.rb +226 -0
  90. data/lib/purecloudplatformclientv2/models/survey_question_group_score.rb +303 -0
  91. data/lib/purecloudplatformclientv2/models/survey_question_score.rb +351 -0
  92. data/lib/purecloudplatformclientv2/models/survey_scoring_set.rb +253 -0
  93. data/lib/purecloudplatformclientv2/models/token.rb +207 -0
  94. data/lib/purecloudplatformclientv2/models/trust_user.rb +27 -1
  95. data/lib/purecloudplatformclientv2/models/user.rb +27 -1
  96. data/lib/purecloudplatformclientv2/models/user_me.rb +27 -1
  97. data/lib/purecloudplatformclientv2/models/view_filter.rb +354 -4
  98. data/lib/purecloudplatformclientv2/version.rb +1 -1
  99. metadata +22 -2
@@ -75,7 +75,7 @@ module PureCloud
75
75
  # http body (model)
76
76
  post_body = nil
77
77
 
78
- auth_names = ['PureCloud Auth']
78
+ auth_names = ['PureCloud OAuth']
79
79
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
80
80
  :header_params => header_params,
81
81
  :query_params => query_params,
@@ -148,7 +148,7 @@ module PureCloud
148
148
  # http body (model)
149
149
  post_body = nil
150
150
 
151
- auth_names = ['PureCloud Auth']
151
+ auth_names = ['PureCloud OAuth']
152
152
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
153
153
  :header_params => header_params,
154
154
  :query_params => query_params,
@@ -239,7 +239,7 @@ module PureCloud
239
239
  # http body (model)
240
240
  post_body = nil
241
241
 
242
- auth_names = ['PureCloud Auth']
242
+ auth_names = ['PureCloud OAuth']
243
243
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
244
244
  :header_params => header_params,
245
245
  :query_params => query_params,
@@ -294,7 +294,7 @@ module PureCloud
294
294
  # http body (model)
295
295
  post_body = nil
296
296
 
297
- auth_names = ['PureCloud Auth']
297
+ auth_names = ['PureCloud OAuth']
298
298
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
299
299
  :header_params => header_params,
300
300
  :query_params => query_params,
@@ -369,7 +369,7 @@ module PureCloud
369
369
  # http body (model)
370
370
  post_body = nil
371
371
 
372
- auth_names = ['PureCloud Auth']
372
+ auth_names = ['PureCloud OAuth']
373
373
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
374
374
  :header_params => header_params,
375
375
  :query_params => query_params,
@@ -454,7 +454,7 @@ module PureCloud
454
454
  # http body (model)
455
455
  post_body = @api_client.object_to_http_body(body)
456
456
 
457
- auth_names = ['PureCloud Auth']
457
+ auth_names = ['PureCloud OAuth']
458
458
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
459
459
  :header_params => header_params,
460
460
  :query_params => query_params,
@@ -519,7 +519,7 @@ module PureCloud
519
519
  # http body (model)
520
520
  post_body = @api_client.object_to_http_body(body)
521
521
 
522
- auth_names = ['PureCloud Auth']
522
+ auth_names = ['PureCloud OAuth']
523
523
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
524
524
  :header_params => header_params,
525
525
  :query_params => query_params,
@@ -594,7 +594,7 @@ module PureCloud
594
594
  # http body (model)
595
595
  post_body = @api_client.object_to_http_body(body)
596
596
 
597
- auth_names = ['PureCloud Auth']
597
+ auth_names = ['PureCloud OAuth']
598
598
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
599
599
  :header_params => header_params,
600
600
  :query_params => query_params,
@@ -659,7 +659,7 @@ module PureCloud
659
659
  # http body (model)
660
660
  post_body = @api_client.object_to_http_body(body)
661
661
 
662
- auth_names = ['PureCloud Auth']
662
+ auth_names = ['PureCloud OAuth']
663
663
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
664
664
  :header_params => header_params,
665
665
  :query_params => query_params,
@@ -86,7 +86,7 @@ module PureCloud
86
86
  # http body (model)
87
87
  post_body = nil
88
88
 
89
- auth_names = ['PureCloud Auth']
89
+ auth_names = ['PureCloud OAuth']
90
90
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
91
91
  :header_params => header_params,
92
92
  :query_params => query_params,
@@ -170,7 +170,7 @@ module PureCloud
170
170
  # http body (model)
171
171
  post_body = nil
172
172
 
173
- auth_names = ['PureCloud Auth']
173
+ auth_names = ['PureCloud OAuth']
174
174
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
175
175
  :header_params => header_params,
176
176
  :query_params => query_params,
@@ -235,7 +235,7 @@ module PureCloud
235
235
  # http body (model)
236
236
  post_body = nil
237
237
 
238
- auth_names = ['PureCloud Auth']
238
+ auth_names = ['PureCloud OAuth']
239
239
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
240
240
  :header_params => header_params,
241
241
  :query_params => query_params,
@@ -299,7 +299,7 @@ module PureCloud
299
299
  # http body (model)
300
300
  post_body = nil
301
301
 
302
- auth_names = ['PureCloud Auth']
302
+ auth_names = ['PureCloud OAuth']
303
303
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
304
304
  :header_params => header_params,
305
305
  :query_params => query_params,
@@ -363,7 +363,7 @@ module PureCloud
363
363
  # http body (model)
364
364
  post_body = nil
365
365
 
366
- auth_names = ['PureCloud Auth']
366
+ auth_names = ['PureCloud OAuth']
367
367
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
368
368
  :header_params => header_params,
369
369
  :query_params => query_params,
@@ -427,7 +427,7 @@ module PureCloud
427
427
  # http body (model)
428
428
  post_body = nil
429
429
 
430
- auth_names = ['PureCloud Auth']
430
+ auth_names = ['PureCloud OAuth']
431
431
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
432
432
  :header_params => header_params,
433
433
  :query_params => query_params,
@@ -492,7 +492,7 @@ module PureCloud
492
492
  # http body (model)
493
493
  post_body = nil
494
494
 
495
- auth_names = ['PureCloud Auth']
495
+ auth_names = ['PureCloud OAuth']
496
496
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
497
497
  :header_params => header_params,
498
498
  :query_params => query_params,
@@ -654,7 +654,7 @@ module PureCloud
654
654
  # http body (model)
655
655
  post_body = nil
656
656
 
657
- auth_names = ['PureCloud Auth']
657
+ auth_names = ['PureCloud OAuth']
658
658
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
659
659
  :header_params => header_params,
660
660
  :query_params => query_params,
@@ -737,7 +737,7 @@ module PureCloud
737
737
  # http body (model)
738
738
  post_body = nil
739
739
 
740
- auth_names = ['PureCloud Auth']
740
+ auth_names = ['PureCloud OAuth']
741
741
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
742
742
  :header_params => header_params,
743
743
  :query_params => query_params,
@@ -884,7 +884,7 @@ module PureCloud
884
884
  # http body (model)
885
885
  post_body = nil
886
886
 
887
- auth_names = ['PureCloud Auth']
887
+ auth_names = ['PureCloud OAuth']
888
888
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
889
889
  :header_params => header_params,
890
890
  :query_params => query_params,
@@ -1021,7 +1021,7 @@ module PureCloud
1021
1021
  # http body (model)
1022
1022
  post_body = nil
1023
1023
 
1024
- auth_names = ['PureCloud Auth']
1024
+ auth_names = ['PureCloud OAuth']
1025
1025
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1026
1026
  :header_params => header_params,
1027
1027
  :query_params => query_params,
@@ -1105,7 +1105,7 @@ module PureCloud
1105
1105
  # http body (model)
1106
1106
  post_body = nil
1107
1107
 
1108
- auth_names = ['PureCloud Auth']
1108
+ auth_names = ['PureCloud OAuth']
1109
1109
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1110
1110
  :header_params => header_params,
1111
1111
  :query_params => query_params,
@@ -1119,6 +1119,71 @@ module PureCloud
1119
1119
  return data, status_code, headers
1120
1120
  end
1121
1121
 
1122
+ # Get the surveys for a conversation
1123
+ #
1124
+ # @param conversation_id conversationId
1125
+ # @param [Hash] opts the optional parameters
1126
+ # @return [Array<Survey>]
1127
+ def get_quality_conversation_surveys(conversation_id, opts = {})
1128
+ data, _status_code, _headers = get_quality_conversation_surveys_with_http_info(conversation_id, opts)
1129
+ return data
1130
+ end
1131
+
1132
+ # Get the surveys for a conversation
1133
+ #
1134
+ # @param conversation_id conversationId
1135
+ # @param [Hash] opts the optional parameters
1136
+ # @return [Array<(Array<Survey>, Fixnum, Hash)>] Array<Survey> data, response status code and response headers
1137
+ def get_quality_conversation_surveys_with_http_info(conversation_id, opts = {})
1138
+ if @api_client.config.debugging
1139
+ @api_client.config.logger.debug "Calling API: QualityApi.get_quality_conversation_surveys ..."
1140
+ end
1141
+
1142
+
1143
+ # verify the required parameter 'conversation_id' is set
1144
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling QualityApi.get_quality_conversation_surveys" if conversation_id.nil?
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+ # resource path
1151
+ local_var_path = "/api/v2/quality/conversations/{conversationId}/surveys".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
1152
+
1153
+ # query parameters
1154
+ query_params = {}
1155
+
1156
+ # header parameters
1157
+ header_params = {}
1158
+
1159
+ # HTTP header 'Accept' (if needed)
1160
+ local_header_accept = ['application/json']
1161
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1162
+
1163
+ # HTTP header 'Content-Type'
1164
+ local_header_content_type = ['application/json']
1165
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1166
+
1167
+ # form parameters
1168
+ form_params = {}
1169
+
1170
+ # http body (model)
1171
+ post_body = nil
1172
+
1173
+ auth_names = ['PureCloud OAuth']
1174
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1175
+ :header_params => header_params,
1176
+ :query_params => query_params,
1177
+ :form_params => form_params,
1178
+ :body => post_body,
1179
+ :auth_names => auth_names,
1180
+ :return_type => 'Array<Survey>')
1181
+ if @api_client.config.debugging
1182
+ @api_client.config.logger.debug "API called: QualityApi#get_quality_conversation_surveys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1183
+ end
1184
+ return data, status_code, headers
1185
+ end
1186
+
1122
1187
  # Queries Evaluations and returns a paged list
1123
1188
  # Query params must include one of conversationId, evaluatorUserId, or agentUserId
1124
1189
  # @param [Hash] opts the optional parameters
@@ -1322,7 +1387,7 @@ module PureCloud
1322
1387
  # http body (model)
1323
1388
  post_body = nil
1324
1389
 
1325
- auth_names = ['PureCloud Auth']
1390
+ auth_names = ['PureCloud OAuth']
1326
1391
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1327
1392
  :header_params => header_params,
1328
1393
  :query_params => query_params,
@@ -1476,7 +1541,7 @@ module PureCloud
1476
1541
  # http body (model)
1477
1542
  post_body = nil
1478
1543
 
1479
- auth_names = ['PureCloud Auth']
1544
+ auth_names = ['PureCloud OAuth']
1480
1545
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1481
1546
  :header_params => header_params,
1482
1547
  :query_params => query_params,
@@ -1541,7 +1606,7 @@ module PureCloud
1541
1606
  # http body (model)
1542
1607
  post_body = nil
1543
1608
 
1544
- auth_names = ['PureCloud Auth']
1609
+ auth_names = ['PureCloud OAuth']
1545
1610
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1546
1611
  :header_params => header_params,
1547
1612
  :query_params => query_params,
@@ -1624,7 +1689,7 @@ module PureCloud
1624
1689
  # http body (model)
1625
1690
  post_body = nil
1626
1691
 
1627
- auth_names = ['PureCloud Auth']
1692
+ auth_names = ['PureCloud OAuth']
1628
1693
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1629
1694
  :header_params => header_params,
1630
1695
  :query_params => query_params,
@@ -1751,7 +1816,7 @@ module PureCloud
1751
1816
  # http body (model)
1752
1817
  post_body = nil
1753
1818
 
1754
- auth_names = ['PureCloud Auth']
1819
+ auth_names = ['PureCloud OAuth']
1755
1820
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1756
1821
  :header_params => header_params,
1757
1822
  :query_params => query_params,
@@ -1816,7 +1881,7 @@ module PureCloud
1816
1881
  # http body (model)
1817
1882
  post_body = nil
1818
1883
 
1819
- auth_names = ['PureCloud Auth']
1884
+ auth_names = ['PureCloud OAuth']
1820
1885
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1821
1886
  :header_params => header_params,
1822
1887
  :query_params => query_params,
@@ -1899,7 +1964,7 @@ module PureCloud
1899
1964
  # http body (model)
1900
1965
  post_body = nil
1901
1966
 
1902
- auth_names = ['PureCloud Auth']
1967
+ auth_names = ['PureCloud OAuth']
1903
1968
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1904
1969
  :header_params => header_params,
1905
1970
  :query_params => query_params,
@@ -2026,7 +2091,7 @@ module PureCloud
2026
2091
  # http body (model)
2027
2092
  post_body = nil
2028
2093
 
2029
- auth_names = ['PureCloud Auth']
2094
+ auth_names = ['PureCloud OAuth']
2030
2095
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2031
2096
  :header_params => header_params,
2032
2097
  :query_params => query_params,
@@ -2091,7 +2156,7 @@ module PureCloud
2091
2156
  # http body (model)
2092
2157
  post_body = nil
2093
2158
 
2094
- auth_names = ['PureCloud Auth']
2159
+ auth_names = ['PureCloud OAuth']
2095
2160
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2096
2161
  :header_params => header_params,
2097
2162
  :query_params => query_params,
@@ -2174,7 +2239,7 @@ module PureCloud
2174
2239
  # http body (model)
2175
2240
  post_body = nil
2176
2241
 
2177
- auth_names = ['PureCloud Auth']
2242
+ auth_names = ['PureCloud OAuth']
2178
2243
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2179
2244
  :header_params => header_params,
2180
2245
  :query_params => query_params,
@@ -2301,7 +2366,7 @@ module PureCloud
2301
2366
  # http body (model)
2302
2367
  post_body = nil
2303
2368
 
2304
- auth_names = ['PureCloud Auth']
2369
+ auth_names = ['PureCloud OAuth']
2305
2370
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2306
2371
  :header_params => header_params,
2307
2372
  :query_params => query_params,
@@ -2367,7 +2432,7 @@ module PureCloud
2367
2432
  # http body (model)
2368
2433
  post_body = nil
2369
2434
 
2370
- auth_names = ['PureCloud Auth']
2435
+ auth_names = ['PureCloud OAuth']
2371
2436
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2372
2437
  :header_params => header_params,
2373
2438
  :query_params => query_params,
@@ -2442,7 +2507,7 @@ module PureCloud
2442
2507
  # http body (model)
2443
2508
  post_body = nil
2444
2509
 
2445
- auth_names = ['PureCloud Auth']
2510
+ auth_names = ['PureCloud OAuth']
2446
2511
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2447
2512
  :header_params => header_params,
2448
2513
  :query_params => query_params,
@@ -2507,7 +2572,7 @@ module PureCloud
2507
2572
  # http body (model)
2508
2573
  post_body = nil
2509
2574
 
2510
- auth_names = ['PureCloud Auth']
2575
+ auth_names = ['PureCloud OAuth']
2511
2576
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2512
2577
  :header_params => header_params,
2513
2578
  :query_params => query_params,
@@ -2656,7 +2721,7 @@ module PureCloud
2656
2721
  # http body (model)
2657
2722
  post_body = nil
2658
2723
 
2659
- auth_names = ['PureCloud Auth']
2724
+ auth_names = ['PureCloud OAuth']
2660
2725
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2661
2726
  :header_params => header_params,
2662
2727
  :query_params => query_params,
@@ -2721,7 +2786,7 @@ module PureCloud
2721
2786
  # http body (model)
2722
2787
  post_body = nil
2723
2788
 
2724
- auth_names = ['PureCloud Auth']
2789
+ auth_names = ['PureCloud OAuth']
2725
2790
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2726
2791
  :header_params => header_params,
2727
2792
  :query_params => query_params,
@@ -2812,7 +2877,7 @@ module PureCloud
2812
2877
  # http body (model)
2813
2878
  post_body = nil
2814
2879
 
2815
- auth_names = ['PureCloud Auth']
2880
+ auth_names = ['PureCloud OAuth']
2816
2881
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2817
2882
  :header_params => header_params,
2818
2883
  :query_params => query_params,
@@ -2877,7 +2942,7 @@ module PureCloud
2877
2942
  # http body (model)
2878
2943
  post_body = nil
2879
2944
 
2880
- auth_names = ['PureCloud Auth']
2945
+ auth_names = ['PureCloud OAuth']
2881
2946
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2882
2947
  :header_params => header_params,
2883
2948
  :query_params => query_params,
@@ -2968,7 +3033,7 @@ module PureCloud
2968
3033
  # http body (model)
2969
3034
  post_body = nil
2970
3035
 
2971
- auth_names = ['PureCloud Auth']
3036
+ auth_names = ['PureCloud OAuth']
2972
3037
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2973
3038
  :header_params => header_params,
2974
3039
  :query_params => query_params,
@@ -3033,7 +3098,7 @@ module PureCloud
3033
3098
  # http body (model)
3034
3099
  post_body = nil
3035
3100
 
3036
- auth_names = ['PureCloud Auth']
3101
+ auth_names = ['PureCloud OAuth']
3037
3102
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3038
3103
  :header_params => header_params,
3039
3104
  :query_params => query_params,
@@ -3124,7 +3189,7 @@ module PureCloud
3124
3189
  # http body (model)
3125
3190
  post_body = nil
3126
3191
 
3127
- auth_names = ['PureCloud Auth']
3192
+ auth_names = ['PureCloud OAuth']
3128
3193
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3129
3194
  :header_params => header_params,
3130
3195
  :query_params => query_params,
@@ -3138,6 +3203,135 @@ module PureCloud
3138
3203
  return data, status_code, headers
3139
3204
  end
3140
3205
 
3206
+ # Get a survey for a conversation
3207
+ #
3208
+ # @param survey_id surveyId
3209
+ # @param [Hash] opts the optional parameters
3210
+ # @return [Survey]
3211
+ def get_quality_survey(survey_id, opts = {})
3212
+ data, _status_code, _headers = get_quality_survey_with_http_info(survey_id, opts)
3213
+ return data
3214
+ end
3215
+
3216
+ # Get a survey for a conversation
3217
+ #
3218
+ # @param survey_id surveyId
3219
+ # @param [Hash] opts the optional parameters
3220
+ # @return [Array<(Survey, Fixnum, Hash)>] Survey data, response status code and response headers
3221
+ def get_quality_survey_with_http_info(survey_id, opts = {})
3222
+ if @api_client.config.debugging
3223
+ @api_client.config.logger.debug "Calling API: QualityApi.get_quality_survey ..."
3224
+ end
3225
+
3226
+
3227
+ # verify the required parameter 'survey_id' is set
3228
+ fail ArgumentError, "Missing the required parameter 'survey_id' when calling QualityApi.get_quality_survey" if survey_id.nil?
3229
+
3230
+
3231
+
3232
+
3233
+
3234
+ # resource path
3235
+ local_var_path = "/api/v2/quality/surveys/{surveyId}".sub('{format}','json').sub('{' + 'surveyId' + '}', survey_id.to_s)
3236
+
3237
+ # query parameters
3238
+ query_params = {}
3239
+
3240
+ # header parameters
3241
+ header_params = {}
3242
+
3243
+ # HTTP header 'Accept' (if needed)
3244
+ local_header_accept = ['application/json']
3245
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
3246
+
3247
+ # HTTP header 'Content-Type'
3248
+ local_header_content_type = ['application/json']
3249
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
3250
+
3251
+ # form parameters
3252
+ form_params = {}
3253
+
3254
+ # http body (model)
3255
+ post_body = nil
3256
+
3257
+ auth_names = ['PureCloud OAuth']
3258
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3259
+ :header_params => header_params,
3260
+ :query_params => query_params,
3261
+ :form_params => form_params,
3262
+ :body => post_body,
3263
+ :auth_names => auth_names,
3264
+ :return_type => 'Survey')
3265
+ if @api_client.config.debugging
3266
+ @api_client.config.logger.debug "API called: QualityApi#get_quality_survey\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3267
+ end
3268
+ return data, status_code, headers
3269
+ end
3270
+
3271
+ # Get a survey as an end-customer, for the purposes of scoring it.
3272
+ #
3273
+ # @param [Hash] opts the optional parameters
3274
+ # @option opts [String] :customer_survey_url customerSurveyUrl
3275
+ # @return [ScorableSurvey]
3276
+ def get_quality_surveys_scorable(opts = {})
3277
+ data, _status_code, _headers = get_quality_surveys_scorable_with_http_info(opts)
3278
+ return data
3279
+ end
3280
+
3281
+ # Get a survey as an end-customer, for the purposes of scoring it.
3282
+ #
3283
+ # @param [Hash] opts the optional parameters
3284
+ # @option opts [String] :customer_survey_url customerSurveyUrl
3285
+ # @return [Array<(ScorableSurvey, Fixnum, Hash)>] ScorableSurvey data, response status code and response headers
3286
+ def get_quality_surveys_scorable_with_http_info(opts = {})
3287
+ if @api_client.config.debugging
3288
+ @api_client.config.logger.debug "Calling API: QualityApi.get_quality_surveys_scorable ..."
3289
+ end
3290
+
3291
+
3292
+
3293
+
3294
+
3295
+
3296
+
3297
+ # resource path
3298
+ local_var_path = "/api/v2/quality/surveys/scorable".sub('{format}','json')
3299
+
3300
+ # query parameters
3301
+ query_params = {}
3302
+ query_params[:'customerSurveyUrl'] = opts[:'customer_survey_url'] if opts[:'customer_survey_url']
3303
+
3304
+ # header parameters
3305
+ header_params = {}
3306
+
3307
+ # HTTP header 'Accept' (if needed)
3308
+ local_header_accept = ['application/json']
3309
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
3310
+
3311
+ # HTTP header 'Content-Type'
3312
+ local_header_content_type = ['application/json']
3313
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
3314
+
3315
+ # form parameters
3316
+ form_params = {}
3317
+
3318
+ # http body (model)
3319
+ post_body = nil
3320
+
3321
+ auth_names = []
3322
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
3323
+ :header_params => header_params,
3324
+ :query_params => query_params,
3325
+ :form_params => form_params,
3326
+ :body => post_body,
3327
+ :auth_names => auth_names,
3328
+ :return_type => 'ScorableSurvey')
3329
+ if @api_client.config.debugging
3330
+ @api_client.config.logger.debug "API called: QualityApi#get_quality_surveys_scorable\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3331
+ end
3332
+ return data, status_code, headers
3333
+ end
3334
+
3141
3335
  # Disable a particular version of a survey form and invalidates any invitations that have already been sent to customers using this version of the form.
3142
3336
  #
3143
3337
  # @param form_id Form ID
@@ -3199,7 +3393,7 @@ module PureCloud
3199
3393
  # http body (model)
3200
3394
  post_body = @api_client.object_to_http_body(body)
3201
3395
 
3202
- auth_names = ['PureCloud Auth']
3396
+ auth_names = ['PureCloud OAuth']
3203
3397
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
3204
3398
  :header_params => header_params,
3205
3399
  :query_params => query_params,
@@ -3264,7 +3458,7 @@ module PureCloud
3264
3458
  # http body (model)
3265
3459
  post_body = @api_client.object_to_http_body(body)
3266
3460
 
3267
- auth_names = ['PureCloud Auth']
3461
+ auth_names = ['PureCloud OAuth']
3268
3462
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3269
3463
  :header_params => header_params,
3270
3464
  :query_params => query_params,
@@ -3278,6 +3472,71 @@ module PureCloud
3278
3472
  return data, status_code, headers
3279
3473
  end
3280
3474
 
3475
+ # Query for survey aggregates
3476
+ #
3477
+ # @param body query
3478
+ # @param [Hash] opts the optional parameters
3479
+ # @return [AggregateQueryResponse]
3480
+ def post_analytics_surveys_aggregates_query(body, opts = {})
3481
+ data, _status_code, _headers = post_analytics_surveys_aggregates_query_with_http_info(body, opts)
3482
+ return data
3483
+ end
3484
+
3485
+ # Query for survey aggregates
3486
+ #
3487
+ # @param body query
3488
+ # @param [Hash] opts the optional parameters
3489
+ # @return [Array<(AggregateQueryResponse, Fixnum, Hash)>] AggregateQueryResponse data, response status code and response headers
3490
+ def post_analytics_surveys_aggregates_query_with_http_info(body, opts = {})
3491
+ if @api_client.config.debugging
3492
+ @api_client.config.logger.debug "Calling API: QualityApi.post_analytics_surveys_aggregates_query ..."
3493
+ end
3494
+
3495
+
3496
+ # verify the required parameter 'body' is set
3497
+ fail ArgumentError, "Missing the required parameter 'body' when calling QualityApi.post_analytics_surveys_aggregates_query" if body.nil?
3498
+
3499
+
3500
+
3501
+
3502
+
3503
+ # resource path
3504
+ local_var_path = "/api/v2/analytics/surveys/aggregates/query".sub('{format}','json')
3505
+
3506
+ # query parameters
3507
+ query_params = {}
3508
+
3509
+ # header parameters
3510
+ header_params = {}
3511
+
3512
+ # HTTP header 'Accept' (if needed)
3513
+ local_header_accept = ['application/json']
3514
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
3515
+
3516
+ # HTTP header 'Content-Type'
3517
+ local_header_content_type = ['application/json']
3518
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
3519
+
3520
+ # form parameters
3521
+ form_params = {}
3522
+
3523
+ # http body (model)
3524
+ post_body = @api_client.object_to_http_body(body)
3525
+
3526
+ auth_names = ['PureCloud OAuth']
3527
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3528
+ :header_params => header_params,
3529
+ :query_params => query_params,
3530
+ :form_params => form_params,
3531
+ :body => post_body,
3532
+ :auth_names => auth_names,
3533
+ :return_type => 'AggregateQueryResponse')
3534
+ if @api_client.config.debugging
3535
+ @api_client.config.logger.debug "API called: QualityApi#post_analytics_surveys_aggregates_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3536
+ end
3537
+ return data, status_code, headers
3538
+ end
3539
+
3281
3540
  # Create a calibration
3282
3541
  #
3283
3542
  # @param body calibration
@@ -3338,7 +3597,7 @@ module PureCloud
3338
3597
  # http body (model)
3339
3598
  post_body = @api_client.object_to_http_body(body)
3340
3599
 
3341
- auth_names = ['PureCloud Auth']
3600
+ auth_names = ['PureCloud OAuth']
3342
3601
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3343
3602
  :header_params => header_params,
3344
3603
  :query_params => query_params,
@@ -3422,7 +3681,7 @@ module PureCloud
3422
3681
  # http body (model)
3423
3682
  post_body = @api_client.object_to_http_body(body)
3424
3683
 
3425
- auth_names = ['PureCloud Auth']
3684
+ auth_names = ['PureCloud OAuth']
3426
3685
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3427
3686
  :header_params => header_params,
3428
3687
  :query_params => query_params,
@@ -3487,7 +3746,7 @@ module PureCloud
3487
3746
  # http body (model)
3488
3747
  post_body = @api_client.object_to_http_body(body)
3489
3748
 
3490
- auth_names = ['PureCloud Auth']
3749
+ auth_names = ['PureCloud OAuth']
3491
3750
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3492
3751
  :header_params => header_params,
3493
3752
  :query_params => query_params,
@@ -3552,7 +3811,7 @@ module PureCloud
3552
3811
  # http body (model)
3553
3812
  post_body = @api_client.object_to_http_body(body)
3554
3813
 
3555
- auth_names = ['PureCloud Auth']
3814
+ auth_names = ['PureCloud OAuth']
3556
3815
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3557
3816
  :header_params => header_params,
3558
3817
  :query_params => query_params,
@@ -3617,7 +3876,7 @@ module PureCloud
3617
3876
  # http body (model)
3618
3877
  post_body = @api_client.object_to_http_body(body)
3619
3878
 
3620
- auth_names = ['PureCloud Auth']
3879
+ auth_names = ['PureCloud OAuth']
3621
3880
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3622
3881
  :header_params => header_params,
3623
3882
  :query_params => query_params,
@@ -3682,7 +3941,7 @@ module PureCloud
3682
3941
  # http body (model)
3683
3942
  post_body = @api_client.object_to_http_body(body)
3684
3943
 
3685
- auth_names = ['PureCloud Auth']
3944
+ auth_names = ['PureCloud OAuth']
3686
3945
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3687
3946
  :header_params => header_params,
3688
3947
  :query_params => query_params,
@@ -3756,7 +4015,7 @@ module PureCloud
3756
4015
  # http body (model)
3757
4016
  post_body = @api_client.object_to_http_body(body)
3758
4017
 
3759
- auth_names = ['PureCloud Auth']
4018
+ auth_names = ['PureCloud OAuth']
3760
4019
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3761
4020
  :header_params => header_params,
3762
4021
  :query_params => query_params,
@@ -3821,7 +4080,7 @@ module PureCloud
3821
4080
  # http body (model)
3822
4081
  post_body = @api_client.object_to_http_body(body)
3823
4082
 
3824
- auth_names = ['PureCloud Auth']
4083
+ auth_names = ['PureCloud OAuth']
3825
4084
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3826
4085
  :header_params => header_params,
3827
4086
  :query_params => query_params,
@@ -3886,7 +4145,7 @@ module PureCloud
3886
4145
  # http body (model)
3887
4146
  post_body = @api_client.object_to_http_body(body)
3888
4147
 
3889
- auth_names = ['PureCloud Auth']
4148
+ auth_names = ['PureCloud OAuth']
3890
4149
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3891
4150
  :header_params => header_params,
3892
4151
  :query_params => query_params,
@@ -3951,7 +4210,7 @@ module PureCloud
3951
4210
  # http body (model)
3952
4211
  post_body = @api_client.object_to_http_body(body)
3953
4212
 
3954
- auth_names = ['PureCloud Auth']
4213
+ auth_names = ['PureCloud OAuth']
3955
4214
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3956
4215
  :header_params => header_params,
3957
4216
  :query_params => query_params,
@@ -4014,7 +4273,7 @@ module PureCloud
4014
4273
  # http body (model)
4015
4274
  post_body = @api_client.object_to_http_body(opts[:'body'])
4016
4275
 
4017
- auth_names = ['PureCloud Auth']
4276
+ auth_names = ['PureCloud OAuth']
4018
4277
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4019
4278
  :header_params => header_params,
4020
4279
  :query_params => query_params,
@@ -4028,6 +4287,71 @@ module PureCloud
4028
4287
  return data, status_code, headers
4029
4288
  end
4030
4289
 
4290
+ # Score survey
4291
+ #
4292
+ # @param body surveyAndScoringSet
4293
+ # @param [Hash] opts the optional parameters
4294
+ # @return [SurveyScoringSet]
4295
+ def post_quality_surveys_scoring(body, opts = {})
4296
+ data, _status_code, _headers = post_quality_surveys_scoring_with_http_info(body, opts)
4297
+ return data
4298
+ end
4299
+
4300
+ # Score survey
4301
+ #
4302
+ # @param body surveyAndScoringSet
4303
+ # @param [Hash] opts the optional parameters
4304
+ # @return [Array<(SurveyScoringSet, Fixnum, Hash)>] SurveyScoringSet data, response status code and response headers
4305
+ def post_quality_surveys_scoring_with_http_info(body, opts = {})
4306
+ if @api_client.config.debugging
4307
+ @api_client.config.logger.debug "Calling API: QualityApi.post_quality_surveys_scoring ..."
4308
+ end
4309
+
4310
+
4311
+ # verify the required parameter 'body' is set
4312
+ fail ArgumentError, "Missing the required parameter 'body' when calling QualityApi.post_quality_surveys_scoring" if body.nil?
4313
+
4314
+
4315
+
4316
+
4317
+
4318
+ # resource path
4319
+ local_var_path = "/api/v2/quality/surveys/scoring".sub('{format}','json')
4320
+
4321
+ # query parameters
4322
+ query_params = {}
4323
+
4324
+ # header parameters
4325
+ header_params = {}
4326
+
4327
+ # HTTP header 'Accept' (if needed)
4328
+ local_header_accept = ['application/json']
4329
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
4330
+
4331
+ # HTTP header 'Content-Type'
4332
+ local_header_content_type = ['application/json']
4333
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
4334
+
4335
+ # form parameters
4336
+ form_params = {}
4337
+
4338
+ # http body (model)
4339
+ post_body = @api_client.object_to_http_body(body)
4340
+
4341
+ auth_names = ['PureCloud OAuth']
4342
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4343
+ :header_params => header_params,
4344
+ :query_params => query_params,
4345
+ :form_params => form_params,
4346
+ :body => post_body,
4347
+ :auth_names => auth_names,
4348
+ :return_type => 'SurveyScoringSet')
4349
+ if @api_client.config.debugging
4350
+ @api_client.config.logger.debug "API called: QualityApi#post_quality_surveys_scoring\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4351
+ end
4352
+ return data, status_code, headers
4353
+ end
4354
+
4031
4355
  # Update a calibration to the specified calibration via PUT. Editable fields include: evaluators, expertEvaluator, and scoringIndex
4032
4356
  #
4033
4357
  # @param calibration_id Calibration ID
@@ -4089,7 +4413,7 @@ module PureCloud
4089
4413
  # http body (model)
4090
4414
  post_body = @api_client.object_to_http_body(body)
4091
4415
 
4092
- auth_names = ['PureCloud Auth']
4416
+ auth_names = ['PureCloud OAuth']
4093
4417
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4094
4418
  :header_params => header_params,
4095
4419
  :query_params => query_params,
@@ -4183,7 +4507,7 @@ module PureCloud
4183
4507
  # http body (model)
4184
4508
  post_body = @api_client.object_to_http_body(body)
4185
4509
 
4186
- auth_names = ['PureCloud Auth']
4510
+ auth_names = ['PureCloud OAuth']
4187
4511
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4188
4512
  :header_params => header_params,
4189
4513
  :query_params => query_params,
@@ -4258,7 +4582,7 @@ module PureCloud
4258
4582
  # http body (model)
4259
4583
  post_body = @api_client.object_to_http_body(body)
4260
4584
 
4261
- auth_names = ['PureCloud Auth']
4585
+ auth_names = ['PureCloud OAuth']
4262
4586
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4263
4587
  :header_params => header_params,
4264
4588
  :query_params => query_params,
@@ -4333,7 +4657,7 @@ module PureCloud
4333
4657
  # http body (model)
4334
4658
  post_body = @api_client.object_to_http_body(body)
4335
4659
 
4336
- auth_names = ['PureCloud Auth']
4660
+ auth_names = ['PureCloud OAuth']
4337
4661
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4338
4662
  :header_params => header_params,
4339
4663
  :query_params => query_params,
@@ -4408,7 +4732,7 @@ module PureCloud
4408
4732
  # http body (model)
4409
4733
  post_body = @api_client.object_to_http_body(body)
4410
4734
 
4411
- auth_names = ['PureCloud Auth']
4735
+ auth_names = ['PureCloud OAuth']
4412
4736
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4413
4737
  :header_params => header_params,
4414
4738
  :query_params => query_params,
@@ -4483,7 +4807,7 @@ module PureCloud
4483
4807
  # http body (model)
4484
4808
  post_body = @api_client.object_to_http_body(body)
4485
4809
 
4486
- auth_names = ['PureCloud Auth']
4810
+ auth_names = ['PureCloud OAuth']
4487
4811
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4488
4812
  :header_params => header_params,
4489
4813
  :query_params => query_params,
@@ -4496,5 +4820,79 @@ module PureCloud
4496
4820
  end
4497
4821
  return data, status_code, headers
4498
4822
  end
4823
+
4824
+ # Update a survey as an end-customer, for the purposes of scoring it.
4825
+ #
4826
+ # @param body survey
4827
+ # @param [Hash] opts the optional parameters
4828
+ # @option opts [String] :customer_survey_url customerSurveyUrl
4829
+ # @return [ScorableSurvey]
4830
+ def put_quality_surveys_scorable(body, opts = {})
4831
+ data, _status_code, _headers = put_quality_surveys_scorable_with_http_info(body, opts)
4832
+ return data
4833
+ end
4834
+
4835
+ # Update a survey as an end-customer, for the purposes of scoring it.
4836
+ #
4837
+ # @param body survey
4838
+ # @param [Hash] opts the optional parameters
4839
+ # @option opts [String] :customer_survey_url customerSurveyUrl
4840
+ # @return [Array<(ScorableSurvey, Fixnum, Hash)>] ScorableSurvey data, response status code and response headers
4841
+ def put_quality_surveys_scorable_with_http_info(body, opts = {})
4842
+ if @api_client.config.debugging
4843
+ @api_client.config.logger.debug "Calling API: QualityApi.put_quality_surveys_scorable ..."
4844
+ end
4845
+
4846
+
4847
+ # verify the required parameter 'body' is set
4848
+ fail ArgumentError, "Missing the required parameter 'body' when calling QualityApi.put_quality_surveys_scorable" if body.nil?
4849
+
4850
+
4851
+
4852
+
4853
+
4854
+
4855
+
4856
+
4857
+
4858
+
4859
+
4860
+ # resource path
4861
+ local_var_path = "/api/v2/quality/surveys/scorable".sub('{format}','json')
4862
+
4863
+ # query parameters
4864
+ query_params = {}
4865
+ query_params[:'customerSurveyUrl'] = opts[:'customer_survey_url'] if opts[:'customer_survey_url']
4866
+
4867
+ # header parameters
4868
+ header_params = {}
4869
+
4870
+ # HTTP header 'Accept' (if needed)
4871
+ local_header_accept = ['application/json']
4872
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
4873
+
4874
+ # HTTP header 'Content-Type'
4875
+ local_header_content_type = ['application/json']
4876
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
4877
+
4878
+ # form parameters
4879
+ form_params = {}
4880
+
4881
+ # http body (model)
4882
+ post_body = @api_client.object_to_http_body(body)
4883
+
4884
+ auth_names = []
4885
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
4886
+ :header_params => header_params,
4887
+ :query_params => query_params,
4888
+ :form_params => form_params,
4889
+ :body => post_body,
4890
+ :auth_names => auth_names,
4891
+ :return_type => 'ScorableSurvey')
4892
+ if @api_client.config.debugging
4893
+ @api_client.config.logger.debug "API called: QualityApi#put_quality_surveys_scorable\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4894
+ end
4895
+ return data, status_code, headers
4896
+ end
4499
4897
  end
4500
4898
  end