purecloudplatformclientv2 27.1.0 → 28.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/AdditionalMessage.md +13 -0
  4. data/docs/AnalyticsParticipant.md +1 -0
  5. data/docs/ArchitectApi.md +40 -28
  6. data/docs/Attachment.md +5 -5
  7. data/docs/ConversationNotificationAttachment.md +18 -0
  8. data/docs/ConversationNotificationDraftAttachments.md +18 -0
  9. data/docs/ConversationNotificationEmail.md +1 -0
  10. data/docs/ConversationNotificationEmails.md +1 -0
  11. data/docs/ConversationsApi.md +964 -198
  12. data/docs/DataTable.md +17 -0
  13. data/docs/DataTableRowEntityListing.md +22 -0
  14. data/docs/DataTablesDomainEntityListing.md +22 -0
  15. data/docs/Document.md +1 -1
  16. data/docs/DomainEdgeSoftwareVersionDto.md +1 -1
  17. data/docs/DomainOrganizationRole.md +1 -1
  18. data/docs/DomainOrganizationRoleCreate.md +1 -1
  19. data/docs/DomainOrganizationRoleUpdate.md +1 -1
  20. data/docs/Email.md +1 -0
  21. data/docs/EmailConversationNotificationAttachment.md +18 -0
  22. data/docs/EmailConversationNotificationEmailMediaParticipant.md +1 -0
  23. data/docs/EmailConversationNotificationParticipants.md +1 -0
  24. data/docs/EmailMediaParticipant.md +1 -0
  25. data/docs/FaxDocument.md +1 -1
  26. data/docs/JsonNode.md +4 -4
  27. data/docs/MessageConversation.md +17 -0
  28. data/docs/MessageConversationEntityListing.md +22 -0
  29. data/docs/MessageData.md +25 -0
  30. data/docs/MessageMediaParticipant.md +44 -0
  31. data/docs/Question.md +1 -1
  32. data/docs/Recipient.md +20 -0
  33. data/docs/RecipientListing.md +22 -0
  34. data/docs/RoutingApi.md +632 -0
  35. data/docs/SMSAvailablePhoneNumberEntityListing.md +13 -0
  36. data/docs/SmsAddressProvision.md +21 -0
  37. data/docs/SmsAvailablePhoneNumber.md +22 -0
  38. data/docs/SmsPhoneNumber.md +25 -0
  39. data/docs/SmsPhoneNumberEntityListing.md +22 -0
  40. data/docs/SmsPhoneNumberProvision.md +18 -0
  41. data/docs/TextMessageListing.md +22 -0
  42. data/lib/purecloudplatformclientv2.rb +20 -0
  43. data/lib/purecloudplatformclientv2/api/architect_api.rb +108 -34
  44. data/lib/purecloudplatformclientv2/api/conversations_api.rb +1247 -317
  45. data/lib/purecloudplatformclientv2/api/routing_api.rb +829 -43
  46. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  47. data/lib/purecloudplatformclientv2/models/additional_message.rb +207 -0
  48. data/lib/purecloudplatformclientv2/models/aggregate_metric_data.rb +2 -2
  49. data/lib/purecloudplatformclientv2/models/analytics_participant.rb +41 -1
  50. data/lib/purecloudplatformclientv2/models/analytics_query_predicate.rb +4 -4
  51. data/lib/purecloudplatformclientv2/models/attachment.rb +5 -0
  52. data/lib/purecloudplatformclientv2/models/conversation_notification_attachment.rb +326 -0
  53. data/lib/purecloudplatformclientv2/models/conversation_notification_draft_attachments.rb +326 -0
  54. data/lib/purecloudplatformclientv2/models/conversation_notification_email.rb +28 -1
  55. data/lib/purecloudplatformclientv2/models/conversation_notification_emails.rb +28 -1
  56. data/lib/purecloudplatformclientv2/models/data_table.rb +306 -0
  57. data/lib/purecloudplatformclientv2/models/data_table_row_entity_listing.rb +428 -0
  58. data/lib/purecloudplatformclientv2/models/data_tables_domain_entity_listing.rb +428 -0
  59. data/lib/purecloudplatformclientv2/models/document.rb +12 -12
  60. data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto.rb +12 -12
  61. data/lib/purecloudplatformclientv2/models/domain_organization_role.rb +12 -12
  62. data/lib/purecloudplatformclientv2/models/domain_organization_role_create.rb +12 -12
  63. data/lib/purecloudplatformclientv2/models/domain_organization_role_update.rb +12 -12
  64. data/lib/purecloudplatformclientv2/models/email.rb +32 -4
  65. data/lib/purecloudplatformclientv2/models/email_conversation_notification_attachment.rb +326 -0
  66. data/lib/purecloudplatformclientv2/models/email_conversation_notification_email_media_participant.rb +31 -4
  67. data/lib/purecloudplatformclientv2/models/email_conversation_notification_participants.rb +31 -4
  68. data/lib/purecloudplatformclientv2/models/email_media_participant.rb +32 -4
  69. data/lib/purecloudplatformclientv2/models/fax_document.rb +12 -12
  70. data/lib/purecloudplatformclientv2/models/json_node.rb +72 -72
  71. data/lib/purecloudplatformclientv2/models/message_conversation.rb +309 -0
  72. data/lib/purecloudplatformclientv2/models/message_conversation_entity_listing.rb +428 -0
  73. data/lib/purecloudplatformclientv2/models/message_data.rb +572 -0
  74. data/lib/purecloudplatformclientv2/models/message_media_participant.rb +1068 -0
  75. data/lib/purecloudplatformclientv2/models/question.rb +13 -13
  76. data/lib/purecloudplatformclientv2/models/recipient.rb +383 -0
  77. data/lib/purecloudplatformclientv2/models/recipient_listing.rb +428 -0
  78. data/lib/purecloudplatformclientv2/models/sms_address_provision.rb +440 -0
  79. data/lib/purecloudplatformclientv2/models/sms_available_phone_number.rb +465 -0
  80. data/lib/purecloudplatformclientv2/models/sms_available_phone_number_entity_listing.rb +203 -0
  81. data/lib/purecloudplatformclientv2/models/sms_phone_number.rb +546 -0
  82. data/lib/purecloudplatformclientv2/models/sms_phone_number_entity_listing.rb +428 -0
  83. data/lib/purecloudplatformclientv2/models/sms_phone_number_provision.rb +360 -0
  84. data/lib/purecloudplatformclientv2/models/text_message_listing.rb +428 -0
  85. data/lib/purecloudplatformclientv2/version.rb +1 -1
  86. metadata +42 -2
@@ -705,7 +705,7 @@ module PureCloud
705
705
  return data, status_code, headers
706
706
  end
707
707
 
708
- # Get conversations
708
+ # Get active conversations for the logged in user
709
709
  #
710
710
  # @param [Hash] opts the optional parameters
711
711
  # @option opts [String] :communication_type Call or Chat communication filtering
@@ -715,7 +715,7 @@ module PureCloud
715
715
  return data
716
716
  end
717
717
 
718
- # Get conversations
718
+ # Get active conversations for the logged in user
719
719
  #
720
720
  # @param [Hash] opts the optional parameters
721
721
  # @option opts [String] :communication_type Call or Chat communication filtering
@@ -1217,7 +1217,7 @@ module PureCloud
1217
1217
  return data, status_code, headers
1218
1218
  end
1219
1219
 
1220
- # Get callback conversations
1220
+ # Get active callback conversations for the logged in user
1221
1221
  #
1222
1222
  # @param [Hash] opts the optional parameters
1223
1223
  # @return [CallbackConversationEntityListing]
@@ -1226,7 +1226,7 @@ module PureCloud
1226
1226
  return data
1227
1227
  end
1228
1228
 
1229
- # Get callback conversations
1229
+ # Get active callback conversations for the logged in user
1230
1230
  #
1231
1231
  # @param [Hash] opts the optional parameters
1232
1232
  # @return [Array<(CallbackConversationEntityListing, Fixnum, Hash)>] CallbackConversationEntityListing data, response status code and response headers
@@ -1272,7 +1272,7 @@ module PureCloud
1272
1272
  return data, status_code, headers
1273
1273
  end
1274
1274
 
1275
- # Get recent conversations
1275
+ # Get active call conversations for the logged in user
1276
1276
  #
1277
1277
  # @param [Hash] opts the optional parameters
1278
1278
  # @return [CallConversationEntityListing]
@@ -1281,7 +1281,7 @@ module PureCloud
1281
1281
  return data
1282
1282
  end
1283
1283
 
1284
- # Get recent conversations
1284
+ # Get active call conversations for the logged in user
1285
1285
  #
1286
1286
  # @param [Hash] opts the optional parameters
1287
1287
  # @return [Array<(CallConversationEntityListing, Fixnum, Hash)>] CallConversationEntityListing data, response status code and response headers
@@ -1697,7 +1697,7 @@ module PureCloud
1697
1697
  return data, status_code, headers
1698
1698
  end
1699
1699
 
1700
- # Get recent chat conversations
1700
+ # Get active chat conversations for the logged in user
1701
1701
  #
1702
1702
  # @param [Hash] opts the optional parameters
1703
1703
  # @return [ChatConversationEntityListing]
@@ -1706,7 +1706,7 @@ module PureCloud
1706
1706
  return data
1707
1707
  end
1708
1708
 
1709
- # Get recent chat conversations
1709
+ # Get active chat conversations for the logged in user
1710
1710
  #
1711
1711
  # @param [Hash] opts the optional parameters
1712
1712
  # @return [Array<(ChatConversationEntityListing, Fixnum, Hash)>] ChatConversationEntityListing data, response status code and response headers
@@ -1976,7 +1976,7 @@ module PureCloud
1976
1976
  return data, status_code, headers
1977
1977
  end
1978
1978
 
1979
- # Get recent cobrowse conversations
1979
+ # Get active cobrowse conversations for the logged in user
1980
1980
  #
1981
1981
  # @param [Hash] opts the optional parameters
1982
1982
  # @return [CobrowseConversationEntityListing]
@@ -1985,7 +1985,7 @@ module PureCloud
1985
1985
  return data
1986
1986
  end
1987
1987
 
1988
- # Get recent cobrowse conversations
1988
+ # Get active cobrowse conversations for the logged in user
1989
1989
  #
1990
1990
  # @param [Hash] opts the optional parameters
1991
1991
  # @return [Array<(CobrowseConversationEntityListing, Fixnum, Hash)>] CobrowseConversationEntityListing data, response status code and response headers
@@ -2460,7 +2460,7 @@ module PureCloud
2460
2460
  return data, status_code, headers
2461
2461
  end
2462
2462
 
2463
- # Get recent email conversations
2463
+ # Get active email conversations for the logged in user
2464
2464
  #
2465
2465
  # @param [Hash] opts the optional parameters
2466
2466
  # @return [EmailConversationEntityListing]
@@ -2469,7 +2469,7 @@ module PureCloud
2469
2469
  return data
2470
2470
  end
2471
2471
 
2472
- # Get recent email conversations
2472
+ # Get active email conversations for the logged in user
2473
2473
  #
2474
2474
  # @param [Hash] opts the optional parameters
2475
2475
  # @return [Array<(EmailConversationEntityListing, Fixnum, Hash)>] EmailConversationEntityListing data, response status code and response headers
@@ -2515,33 +2515,714 @@ module PureCloud
2515
2515
  return data, status_code, headers
2516
2516
  end
2517
2517
 
2518
+ # Get message conversation
2519
+ #
2520
+ # @param conversation_id conversationId
2521
+ # @param [Hash] opts the optional parameters
2522
+ # @return [MessageConversation]
2523
+ def get_conversations_message(conversation_id, opts = {})
2524
+ data, _status_code, _headers = get_conversations_message_with_http_info(conversation_id, opts)
2525
+ return data
2526
+ end
2527
+
2528
+ # Get message conversation
2529
+ #
2530
+ # @param conversation_id conversationId
2531
+ # @param [Hash] opts the optional parameters
2532
+ # @return [Array<(MessageConversation, Fixnum, Hash)>] MessageConversation data, response status code and response headers
2533
+ def get_conversations_message_with_http_info(conversation_id, opts = {})
2534
+ if @api_client.config.debugging
2535
+ @api_client.config.logger.debug "Calling API: ConversationsApi.get_conversations_message ..."
2536
+ end
2537
+
2538
+
2539
+ # verify the required parameter 'conversation_id' is set
2540
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.get_conversations_message" if conversation_id.nil?
2541
+
2542
+
2543
+
2544
+
2545
+
2546
+ # resource path
2547
+ local_var_path = "/api/v2/conversations/messages/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
2548
+
2549
+ # query parameters
2550
+ query_params = {}
2551
+
2552
+ # header parameters
2553
+ header_params = {}
2554
+
2555
+ # HTTP header 'Accept' (if needed)
2556
+ local_header_accept = ['application/json']
2557
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
2558
+
2559
+ # HTTP header 'Content-Type'
2560
+ local_header_content_type = ['application/json']
2561
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
2562
+
2563
+ # form parameters
2564
+ form_params = {}
2565
+
2566
+ # http body (model)
2567
+ post_body = nil
2568
+
2569
+ auth_names = ['PureCloud Auth']
2570
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2571
+ :header_params => header_params,
2572
+ :query_params => query_params,
2573
+ :form_params => form_params,
2574
+ :body => post_body,
2575
+ :auth_names => auth_names,
2576
+ :return_type => 'MessageConversation')
2577
+ if @api_client.config.debugging
2578
+ @api_client.config.logger.debug "API called: ConversationsApi#get_conversations_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2579
+ end
2580
+ return data, status_code, headers
2581
+ end
2582
+
2583
+ # Get message
2584
+ #
2585
+ # @param conversation_id conversationId
2586
+ # @param message_id messageId
2587
+ # @param [Hash] opts the optional parameters
2588
+ # @return [MessageData]
2589
+ def get_conversations_message_message(conversation_id, message_id, opts = {})
2590
+ data, _status_code, _headers = get_conversations_message_message_with_http_info(conversation_id, message_id, opts)
2591
+ return data
2592
+ end
2593
+
2594
+ # Get message
2595
+ #
2596
+ # @param conversation_id conversationId
2597
+ # @param message_id messageId
2598
+ # @param [Hash] opts the optional parameters
2599
+ # @return [Array<(MessageData, Fixnum, Hash)>] MessageData data, response status code and response headers
2600
+ def get_conversations_message_message_with_http_info(conversation_id, message_id, opts = {})
2601
+ if @api_client.config.debugging
2602
+ @api_client.config.logger.debug "Calling API: ConversationsApi.get_conversations_message_message ..."
2603
+ end
2604
+
2605
+
2606
+ # verify the required parameter 'conversation_id' is set
2607
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.get_conversations_message_message" if conversation_id.nil?
2608
+
2609
+
2610
+
2611
+
2612
+
2613
+
2614
+ # verify the required parameter 'message_id' is set
2615
+ fail ArgumentError, "Missing the required parameter 'message_id' when calling ConversationsApi.get_conversations_message_message" if message_id.nil?
2616
+
2617
+
2618
+
2619
+
2620
+
2621
+ # resource path
2622
+ local_var_path = "/api/v2/conversations/messages/{conversationId}/messages/{messageId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'messageId' + '}', message_id.to_s)
2623
+
2624
+ # query parameters
2625
+ query_params = {}
2626
+
2627
+ # header parameters
2628
+ header_params = {}
2629
+
2630
+ # HTTP header 'Accept' (if needed)
2631
+ local_header_accept = ['application/json']
2632
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
2633
+
2634
+ # HTTP header 'Content-Type'
2635
+ local_header_content_type = ['application/json']
2636
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
2637
+
2638
+ # form parameters
2639
+ form_params = {}
2640
+
2641
+ # http body (model)
2642
+ post_body = nil
2643
+
2644
+ auth_names = ['PureCloud Auth']
2645
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2646
+ :header_params => header_params,
2647
+ :query_params => query_params,
2648
+ :form_params => form_params,
2649
+ :body => post_body,
2650
+ :auth_names => auth_names,
2651
+ :return_type => 'MessageData')
2652
+ if @api_client.config.debugging
2653
+ @api_client.config.logger.debug "API called: ConversationsApi#get_conversations_message_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2654
+ end
2655
+ return data, status_code, headers
2656
+ end
2657
+
2658
+ # Get the wrap-up for this conversation participant.
2659
+ #
2660
+ # @param conversation_id conversationId
2661
+ # @param participant_id participantId
2662
+ # @param [Hash] opts the optional parameters
2663
+ # @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional. (default to false)
2664
+ # @return [Wrapup]
2665
+ def get_conversations_message_participant_wrapup(conversation_id, participant_id, opts = {})
2666
+ data, _status_code, _headers = get_conversations_message_participant_wrapup_with_http_info(conversation_id, participant_id, opts)
2667
+ return data
2668
+ end
2669
+
2670
+ # Get the wrap-up for this conversation participant.
2671
+ #
2672
+ # @param conversation_id conversationId
2673
+ # @param participant_id participantId
2674
+ # @param [Hash] opts the optional parameters
2675
+ # @option opts [BOOLEAN] :provisional Indicates if the wrap-up code is provisional.
2676
+ # @return [Array<(Wrapup, Fixnum, Hash)>] Wrapup data, response status code and response headers
2677
+ def get_conversations_message_participant_wrapup_with_http_info(conversation_id, participant_id, opts = {})
2678
+ if @api_client.config.debugging
2679
+ @api_client.config.logger.debug "Calling API: ConversationsApi.get_conversations_message_participant_wrapup ..."
2680
+ end
2681
+
2682
+
2683
+ # verify the required parameter 'conversation_id' is set
2684
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.get_conversations_message_participant_wrapup" if conversation_id.nil?
2685
+
2686
+
2687
+
2688
+
2689
+
2690
+
2691
+ # verify the required parameter 'participant_id' is set
2692
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.get_conversations_message_participant_wrapup" if participant_id.nil?
2693
+
2694
+
2695
+
2696
+
2697
+
2698
+
2699
+
2700
+
2701
+
2702
+
2703
+
2704
+ # resource path
2705
+ local_var_path = "/api/v2/conversations/messages/{conversationId}/participants/{participantId}/wrapup".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
2706
+
2707
+ # query parameters
2708
+ query_params = {}
2709
+ query_params[:'provisional'] = opts[:'provisional'] if opts[:'provisional']
2710
+
2711
+ # header parameters
2712
+ header_params = {}
2713
+
2714
+ # HTTP header 'Accept' (if needed)
2715
+ local_header_accept = ['application/json']
2716
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
2717
+
2718
+ # HTTP header 'Content-Type'
2719
+ local_header_content_type = ['application/json']
2720
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
2721
+
2722
+ # form parameters
2723
+ form_params = {}
2724
+
2725
+ # http body (model)
2726
+ post_body = nil
2727
+
2728
+ auth_names = ['PureCloud Auth']
2729
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2730
+ :header_params => header_params,
2731
+ :query_params => query_params,
2732
+ :form_params => form_params,
2733
+ :body => post_body,
2734
+ :auth_names => auth_names,
2735
+ :return_type => 'Wrapup')
2736
+ if @api_client.config.debugging
2737
+ @api_client.config.logger.debug "API called: ConversationsApi#get_conversations_message_participant_wrapup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2738
+ end
2739
+ return data, status_code, headers
2740
+ end
2741
+
2742
+ # Get list of wrapup codes for this conversation participant
2743
+ #
2744
+ # @param conversation_id conversationId
2745
+ # @param participant_id participantId
2746
+ # @param [Hash] opts the optional parameters
2747
+ # @return [Array<WrapupCode>]
2748
+ def get_conversations_message_participant_wrapupcodes(conversation_id, participant_id, opts = {})
2749
+ data, _status_code, _headers = get_conversations_message_participant_wrapupcodes_with_http_info(conversation_id, participant_id, opts)
2750
+ return data
2751
+ end
2752
+
2753
+ # Get list of wrapup codes for this conversation participant
2754
+ #
2755
+ # @param conversation_id conversationId
2756
+ # @param participant_id participantId
2757
+ # @param [Hash] opts the optional parameters
2758
+ # @return [Array<(Array<WrapupCode>, Fixnum, Hash)>] Array<WrapupCode> data, response status code and response headers
2759
+ def get_conversations_message_participant_wrapupcodes_with_http_info(conversation_id, participant_id, opts = {})
2760
+ if @api_client.config.debugging
2761
+ @api_client.config.logger.debug "Calling API: ConversationsApi.get_conversations_message_participant_wrapupcodes ..."
2762
+ end
2763
+
2764
+
2765
+ # verify the required parameter 'conversation_id' is set
2766
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.get_conversations_message_participant_wrapupcodes" if conversation_id.nil?
2767
+
2768
+
2769
+
2770
+
2771
+
2772
+
2773
+ # verify the required parameter 'participant_id' is set
2774
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.get_conversations_message_participant_wrapupcodes" if participant_id.nil?
2775
+
2776
+
2777
+
2778
+
2779
+
2780
+ # resource path
2781
+ local_var_path = "/api/v2/conversations/messages/{conversationId}/participants/{participantId}/wrapupcodes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
2782
+
2783
+ # query parameters
2784
+ query_params = {}
2785
+
2786
+ # header parameters
2787
+ header_params = {}
2788
+
2789
+ # HTTP header 'Accept' (if needed)
2790
+ local_header_accept = ['application/json']
2791
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
2792
+
2793
+ # HTTP header 'Content-Type'
2794
+ local_header_content_type = ['application/json']
2795
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
2796
+
2797
+ # form parameters
2798
+ form_params = {}
2799
+
2800
+ # http body (model)
2801
+ post_body = nil
2802
+
2803
+ auth_names = ['PureCloud Auth']
2804
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2805
+ :header_params => header_params,
2806
+ :query_params => query_params,
2807
+ :form_params => form_params,
2808
+ :body => post_body,
2809
+ :auth_names => auth_names,
2810
+ :return_type => 'Array<WrapupCode>')
2811
+ if @api_client.config.debugging
2812
+ @api_client.config.logger.debug "API called: ConversationsApi#get_conversations_message_participant_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2813
+ end
2814
+ return data, status_code, headers
2815
+ end
2816
+
2817
+ # Get active message conversations for the logged in user
2818
+ #
2819
+ # @param [Hash] opts the optional parameters
2820
+ # @return [MessageConversationEntityListing]
2821
+ def get_conversations_messages(opts = {})
2822
+ data, _status_code, _headers = get_conversations_messages_with_http_info(opts)
2823
+ return data
2824
+ end
2825
+
2826
+ # Get active message conversations for the logged in user
2827
+ #
2828
+ # @param [Hash] opts the optional parameters
2829
+ # @return [Array<(MessageConversationEntityListing, Fixnum, Hash)>] MessageConversationEntityListing data, response status code and response headers
2830
+ def get_conversations_messages_with_http_info(opts = {})
2831
+ if @api_client.config.debugging
2832
+ @api_client.config.logger.debug "Calling API: ConversationsApi.get_conversations_messages ..."
2833
+ end
2834
+
2835
+ # resource path
2836
+ local_var_path = "/api/v2/conversations/messages".sub('{format}','json')
2837
+
2838
+ # query parameters
2839
+ query_params = {}
2840
+
2841
+ # header parameters
2842
+ header_params = {}
2843
+
2844
+ # HTTP header 'Accept' (if needed)
2845
+ local_header_accept = ['application/json']
2846
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
2847
+
2848
+ # HTTP header 'Content-Type'
2849
+ local_header_content_type = ['application/json']
2850
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
2851
+
2852
+ # form parameters
2853
+ form_params = {}
2854
+
2855
+ # http body (model)
2856
+ post_body = nil
2857
+
2858
+ auth_names = ['PureCloud Auth']
2859
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2860
+ :header_params => header_params,
2861
+ :query_params => query_params,
2862
+ :form_params => form_params,
2863
+ :body => post_body,
2864
+ :auth_names => auth_names,
2865
+ :return_type => 'MessageConversationEntityListing')
2866
+ if @api_client.config.debugging
2867
+ @api_client.config.logger.debug "API called: ConversationsApi#get_conversations_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2868
+ end
2869
+ return data, status_code, headers
2870
+ end
2871
+
2872
+ # Update a participant.
2873
+ # Update conversation participant.
2874
+ # @param conversation_id conversation ID
2875
+ # @param participant_id participant ID
2876
+ # @param body Update request
2877
+ # @param [Hash] opts the optional parameters
2878
+ # @return [nil]
2879
+ def patch_conversation_participant(conversation_id, participant_id, body, opts = {})
2880
+ patch_conversation_participant_with_http_info(conversation_id, participant_id, body, opts)
2881
+ return nil
2882
+ end
2883
+
2518
2884
  # Update a participant.
2519
2885
  # Update conversation participant.
2520
2886
  # @param conversation_id conversation ID
2521
2887
  # @param participant_id participant ID
2522
2888
  # @param body Update request
2523
2889
  # @param [Hash] opts the optional parameters
2890
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
2891
+ def patch_conversation_participant_with_http_info(conversation_id, participant_id, body, opts = {})
2892
+ if @api_client.config.debugging
2893
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversation_participant ..."
2894
+ end
2895
+
2896
+
2897
+ # verify the required parameter 'conversation_id' is set
2898
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversation_participant" if conversation_id.nil?
2899
+
2900
+
2901
+
2902
+
2903
+
2904
+
2905
+ # verify the required parameter 'participant_id' is set
2906
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversation_participant" if participant_id.nil?
2907
+
2908
+
2909
+
2910
+
2911
+
2912
+
2913
+ # verify the required parameter 'body' is set
2914
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversation_participant" if body.nil?
2915
+
2916
+
2917
+
2918
+
2919
+
2920
+ # resource path
2921
+ local_var_path = "/api/v2/conversations/{conversationId}/participants/{participantId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
2922
+
2923
+ # query parameters
2924
+ query_params = {}
2925
+
2926
+ # header parameters
2927
+ header_params = {}
2928
+
2929
+ # HTTP header 'Accept' (if needed)
2930
+ local_header_accept = ['application/json']
2931
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
2932
+
2933
+ # HTTP header 'Content-Type'
2934
+ local_header_content_type = ['application/json']
2935
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
2936
+
2937
+ # form parameters
2938
+ form_params = {}
2939
+
2940
+ # http body (model)
2941
+ post_body = @api_client.object_to_http_body(body)
2942
+
2943
+ auth_names = ['PureCloud Auth']
2944
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
2945
+ :header_params => header_params,
2946
+ :query_params => query_params,
2947
+ :form_params => form_params,
2948
+ :body => post_body,
2949
+ :auth_names => auth_names)
2950
+ if @api_client.config.debugging
2951
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversation_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2952
+ end
2953
+ return data, status_code, headers
2954
+ end
2955
+
2956
+ # Update the attributes on a conversation participant.
2957
+ #
2958
+ # @param conversation_id conversation ID
2959
+ # @param participant_id participant ID
2960
+ # @param body Participant attributes
2961
+ # @param [Hash] opts the optional parameters
2524
2962
  # @return [nil]
2525
- def patch_conversation_participant(conversation_id, participant_id, body, opts = {})
2526
- patch_conversation_participant_with_http_info(conversation_id, participant_id, body, opts)
2963
+ def patch_conversation_participant_attributes(conversation_id, participant_id, body, opts = {})
2964
+ patch_conversation_participant_attributes_with_http_info(conversation_id, participant_id, body, opts)
2527
2965
  return nil
2528
2966
  end
2529
2967
 
2530
- # Update a participant.
2531
- # Update conversation participant.
2968
+ # Update the attributes on a conversation participant.
2969
+ #
2532
2970
  # @param conversation_id conversation ID
2533
2971
  # @param participant_id participant ID
2534
- # @param body Update request
2972
+ # @param body Participant attributes
2535
2973
  # @param [Hash] opts the optional parameters
2536
2974
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
2537
- def patch_conversation_participant_with_http_info(conversation_id, participant_id, body, opts = {})
2975
+ def patch_conversation_participant_attributes_with_http_info(conversation_id, participant_id, body, opts = {})
2976
+ if @api_client.config.debugging
2977
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversation_participant_attributes ..."
2978
+ end
2979
+
2980
+
2981
+ # verify the required parameter 'conversation_id' is set
2982
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversation_participant_attributes" if conversation_id.nil?
2983
+
2984
+
2985
+
2986
+
2987
+
2988
+
2989
+ # verify the required parameter 'participant_id' is set
2990
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversation_participant_attributes" if participant_id.nil?
2991
+
2992
+
2993
+
2994
+
2995
+
2996
+
2997
+ # verify the required parameter 'body' is set
2998
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversation_participant_attributes" if body.nil?
2999
+
3000
+
3001
+
3002
+
3003
+
3004
+ # resource path
3005
+ local_var_path = "/api/v2/conversations/{conversationId}/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
3006
+
3007
+ # query parameters
3008
+ query_params = {}
3009
+
3010
+ # header parameters
3011
+ header_params = {}
3012
+
3013
+ # HTTP header 'Accept' (if needed)
3014
+ local_header_accept = ['application/json']
3015
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
3016
+
3017
+ # HTTP header 'Content-Type'
3018
+ local_header_content_type = ['application/json']
3019
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
3020
+
3021
+ # form parameters
3022
+ form_params = {}
3023
+
3024
+ # http body (model)
3025
+ post_body = @api_client.object_to_http_body(body)
3026
+
3027
+ auth_names = ['PureCloud Auth']
3028
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
3029
+ :header_params => header_params,
3030
+ :query_params => query_params,
3031
+ :form_params => form_params,
3032
+ :body => post_body,
3033
+ :auth_names => auth_names)
3034
+ if @api_client.config.debugging
3035
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversation_participant_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3036
+ end
3037
+ return data, status_code, headers
3038
+ end
3039
+
3040
+ # Update a conversation by setting it's recording state, merging in other conversations to create a conference, or disconnecting all of the participants
3041
+ #
3042
+ # @param conversation_id conversationId
3043
+ # @param body Conversation
3044
+ # @param [Hash] opts the optional parameters
3045
+ # @return [Conversation]
3046
+ def patch_conversations_call(conversation_id, body, opts = {})
3047
+ data, _status_code, _headers = patch_conversations_call_with_http_info(conversation_id, body, opts)
3048
+ return data
3049
+ end
3050
+
3051
+ # Update a conversation by setting it&#39;s recording state, merging in other conversations to create a conference, or disconnecting all of the participants
3052
+ #
3053
+ # @param conversation_id conversationId
3054
+ # @param body Conversation
3055
+ # @param [Hash] opts the optional parameters
3056
+ # @return [Array<(Conversation, Fixnum, Hash)>] Conversation data, response status code and response headers
3057
+ def patch_conversations_call_with_http_info(conversation_id, body, opts = {})
3058
+ if @api_client.config.debugging
3059
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_call ..."
3060
+ end
3061
+
3062
+
3063
+ # verify the required parameter 'conversation_id' is set
3064
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_call" if conversation_id.nil?
3065
+
3066
+
3067
+
3068
+
3069
+
3070
+
3071
+ # verify the required parameter 'body' is set
3072
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_call" if body.nil?
3073
+
3074
+
3075
+
3076
+
3077
+
3078
+ # resource path
3079
+ local_var_path = "/api/v2/conversations/calls/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
3080
+
3081
+ # query parameters
3082
+ query_params = {}
3083
+
3084
+ # header parameters
3085
+ header_params = {}
3086
+
3087
+ # HTTP header 'Accept' (if needed)
3088
+ local_header_accept = ['application/json']
3089
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
3090
+
3091
+ # HTTP header 'Content-Type'
3092
+ local_header_content_type = ['application/json']
3093
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
3094
+
3095
+ # form parameters
3096
+ form_params = {}
3097
+
3098
+ # http body (model)
3099
+ post_body = @api_client.object_to_http_body(body)
3100
+
3101
+ auth_names = ['PureCloud Auth']
3102
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
3103
+ :header_params => header_params,
3104
+ :query_params => query_params,
3105
+ :form_params => form_params,
3106
+ :body => post_body,
3107
+ :auth_names => auth_names,
3108
+ :return_type => 'Conversation')
3109
+ if @api_client.config.debugging
3110
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_call\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3111
+ end
3112
+ return data, status_code, headers
3113
+ end
3114
+
3115
+ # Update conversation participant
3116
+ #
3117
+ # @param conversation_id conversationId
3118
+ # @param participant_id participantId
3119
+ # @param body Participant request
3120
+ # @param [Hash] opts the optional parameters
3121
+ # @return [nil]
3122
+ def patch_conversations_call_participant(conversation_id, participant_id, body, opts = {})
3123
+ patch_conversations_call_participant_with_http_info(conversation_id, participant_id, body, opts)
3124
+ return nil
3125
+ end
3126
+
3127
+ # Update conversation participant
3128
+ #
3129
+ # @param conversation_id conversationId
3130
+ # @param participant_id participantId
3131
+ # @param body Participant request
3132
+ # @param [Hash] opts the optional parameters
3133
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
3134
+ def patch_conversations_call_participant_with_http_info(conversation_id, participant_id, body, opts = {})
3135
+ if @api_client.config.debugging
3136
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_call_participant ..."
3137
+ end
3138
+
3139
+
3140
+ # verify the required parameter 'conversation_id' is set
3141
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_call_participant" if conversation_id.nil?
3142
+
3143
+
3144
+
3145
+
3146
+
3147
+
3148
+ # verify the required parameter 'participant_id' is set
3149
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_call_participant" if participant_id.nil?
3150
+
3151
+
3152
+
3153
+
3154
+
3155
+
3156
+ # verify the required parameter 'body' is set
3157
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_call_participant" if body.nil?
3158
+
3159
+
3160
+
3161
+
3162
+
3163
+ # resource path
3164
+ local_var_path = "/api/v2/conversations/calls/{conversationId}/participants/{participantId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
3165
+
3166
+ # query parameters
3167
+ query_params = {}
3168
+
3169
+ # header parameters
3170
+ header_params = {}
3171
+
3172
+ # HTTP header 'Accept' (if needed)
3173
+ local_header_accept = ['application/json']
3174
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
3175
+
3176
+ # HTTP header 'Content-Type'
3177
+ local_header_content_type = ['application/json']
3178
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
3179
+
3180
+ # form parameters
3181
+ form_params = {}
3182
+
3183
+ # http body (model)
3184
+ post_body = @api_client.object_to_http_body(body)
3185
+
3186
+ auth_names = ['PureCloud Auth']
3187
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
3188
+ :header_params => header_params,
3189
+ :query_params => query_params,
3190
+ :form_params => form_params,
3191
+ :body => post_body,
3192
+ :auth_names => auth_names)
3193
+ if @api_client.config.debugging
3194
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_call_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3195
+ end
3196
+ return data, status_code, headers
3197
+ end
3198
+
3199
+ # Update the attributes on a conversation participant.
3200
+ #
3201
+ # @param conversation_id conversationId
3202
+ # @param participant_id participantId
3203
+ # @param body Participant attributes
3204
+ # @param [Hash] opts the optional parameters
3205
+ # @return [nil]
3206
+ def patch_conversations_call_participant_attributes(conversation_id, participant_id, body, opts = {})
3207
+ patch_conversations_call_participant_attributes_with_http_info(conversation_id, participant_id, body, opts)
3208
+ return nil
3209
+ end
3210
+
3211
+ # Update the attributes on a conversation participant.
3212
+ #
3213
+ # @param conversation_id conversationId
3214
+ # @param participant_id participantId
3215
+ # @param body Participant attributes
3216
+ # @param [Hash] opts the optional parameters
3217
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
3218
+ def patch_conversations_call_participant_attributes_with_http_info(conversation_id, participant_id, body, opts = {})
2538
3219
  if @api_client.config.debugging
2539
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversation_participant ..."
3220
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_call_participant_attributes ..."
2540
3221
  end
2541
3222
 
2542
3223
 
2543
3224
  # verify the required parameter 'conversation_id' is set
2544
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversation_participant" if conversation_id.nil?
3225
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_call_participant_attributes" if conversation_id.nil?
2545
3226
 
2546
3227
 
2547
3228
 
@@ -2549,7 +3230,7 @@ module PureCloud
2549
3230
 
2550
3231
 
2551
3232
  # verify the required parameter 'participant_id' is set
2552
- fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversation_participant" if participant_id.nil?
3233
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_call_participant_attributes" if participant_id.nil?
2553
3234
 
2554
3235
 
2555
3236
 
@@ -2557,14 +3238,14 @@ module PureCloud
2557
3238
 
2558
3239
 
2559
3240
  # verify the required parameter 'body' is set
2560
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversation_participant" if body.nil?
3241
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_call_participant_attributes" if body.nil?
2561
3242
 
2562
3243
 
2563
3244
 
2564
3245
 
2565
3246
 
2566
3247
  # resource path
2567
- local_var_path = "/api/v2/conversations/{conversationId}/participants/{participantId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
3248
+ local_var_path = "/api/v2/conversations/calls/{conversationId}/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
2568
3249
 
2569
3250
  # query parameters
2570
3251
  query_params = {}
@@ -2594,38 +3275,40 @@ module PureCloud
2594
3275
  :body => post_body,
2595
3276
  :auth_names => auth_names)
2596
3277
  if @api_client.config.debugging
2597
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversation_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3278
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_call_participant_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2598
3279
  end
2599
3280
  return data, status_code, headers
2600
3281
  end
2601
3282
 
2602
- # Update the attributes on a conversation participant.
3283
+ # Update conversation participant's communication by disconnecting it.
2603
3284
  #
2604
- # @param conversation_id conversation ID
2605
- # @param participant_id participant ID
2606
- # @param body Participant attributes
3285
+ # @param conversation_id conversationId
3286
+ # @param participant_id participantId
3287
+ # @param communication_id communicationId
3288
+ # @param body Participant
2607
3289
  # @param [Hash] opts the optional parameters
2608
- # @return [nil]
2609
- def patch_conversation_participant_attributes(conversation_id, participant_id, body, opts = {})
2610
- patch_conversation_participant_attributes_with_http_info(conversation_id, participant_id, body, opts)
2611
- return nil
3290
+ # @return [Empty]
3291
+ def patch_conversations_call_participant_communication(conversation_id, participant_id, communication_id, body, opts = {})
3292
+ data, _status_code, _headers = patch_conversations_call_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts)
3293
+ return data
2612
3294
  end
2613
3295
 
2614
- # Update the attributes on a conversation participant.
3296
+ # Update conversation participant&#39;s communication by disconnecting it.
2615
3297
  #
2616
- # @param conversation_id conversation ID
2617
- # @param participant_id participant ID
2618
- # @param body Participant attributes
3298
+ # @param conversation_id conversationId
3299
+ # @param participant_id participantId
3300
+ # @param communication_id communicationId
3301
+ # @param body Participant
2619
3302
  # @param [Hash] opts the optional parameters
2620
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
2621
- def patch_conversation_participant_attributes_with_http_info(conversation_id, participant_id, body, opts = {})
3303
+ # @return [Array<(Empty, Fixnum, Hash)>] Empty data, response status code and response headers
3304
+ def patch_conversations_call_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts = {})
2622
3305
  if @api_client.config.debugging
2623
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversation_participant_attributes ..."
3306
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_call_participant_communication ..."
2624
3307
  end
2625
3308
 
2626
3309
 
2627
3310
  # verify the required parameter 'conversation_id' is set
2628
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversation_participant_attributes" if conversation_id.nil?
3311
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_call_participant_communication" if conversation_id.nil?
2629
3312
 
2630
3313
 
2631
3314
 
@@ -2633,7 +3316,15 @@ module PureCloud
2633
3316
 
2634
3317
 
2635
3318
  # verify the required parameter 'participant_id' is set
2636
- fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversation_participant_attributes" if participant_id.nil?
3319
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_call_participant_communication" if participant_id.nil?
3320
+
3321
+
3322
+
3323
+
3324
+
3325
+
3326
+ # verify the required parameter 'communication_id' is set
3327
+ fail ArgumentError, "Missing the required parameter 'communication_id' when calling ConversationsApi.patch_conversations_call_participant_communication" if communication_id.nil?
2637
3328
 
2638
3329
 
2639
3330
 
@@ -2641,14 +3332,14 @@ module PureCloud
2641
3332
 
2642
3333
 
2643
3334
  # verify the required parameter 'body' is set
2644
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversation_participant_attributes" if body.nil?
3335
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_call_participant_communication" if body.nil?
2645
3336
 
2646
3337
 
2647
3338
 
2648
3339
 
2649
3340
 
2650
3341
  # resource path
2651
- local_var_path = "/api/v2/conversations/{conversationId}/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
3342
+ local_var_path = "/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s).sub('{' + 'communicationId' + '}', communication_id.to_s)
2652
3343
 
2653
3344
  # query parameters
2654
3345
  query_params = {}
@@ -2676,38 +3367,49 @@ module PureCloud
2676
3367
  :query_params => query_params,
2677
3368
  :form_params => form_params,
2678
3369
  :body => post_body,
2679
- :auth_names => auth_names)
3370
+ :auth_names => auth_names,
3371
+ :return_type => 'Empty')
2680
3372
  if @api_client.config.debugging
2681
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversation_participant_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3373
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_call_participant_communication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2682
3374
  end
2683
3375
  return data, status_code, headers
2684
3376
  end
2685
3377
 
2686
- # Update a conversation by setting it's recording state, merging in other conversations to create a conference, or disconnecting all of the participants
3378
+ # Change who can speak
2687
3379
  #
2688
3380
  # @param conversation_id conversationId
2689
- # @param body Conversation
3381
+ # @param participant_id participantId
3382
+ # @param body new speak to
2690
3383
  # @param [Hash] opts the optional parameters
2691
- # @return [Conversation]
2692
- def patch_conversations_call(conversation_id, body, opts = {})
2693
- data, _status_code, _headers = patch_conversations_call_with_http_info(conversation_id, body, opts)
3384
+ # @return [ConsultTransferResponse]
3385
+ def patch_conversations_call_participant_consult(conversation_id, participant_id, body, opts = {})
3386
+ data, _status_code, _headers = patch_conversations_call_participant_consult_with_http_info(conversation_id, participant_id, body, opts)
2694
3387
  return data
2695
3388
  end
2696
3389
 
2697
- # Update a conversation by setting it&#39;s recording state, merging in other conversations to create a conference, or disconnecting all of the participants
3390
+ # Change who can speak
2698
3391
  #
2699
3392
  # @param conversation_id conversationId
2700
- # @param body Conversation
3393
+ # @param participant_id participantId
3394
+ # @param body new speak to
2701
3395
  # @param [Hash] opts the optional parameters
2702
- # @return [Array<(Conversation, Fixnum, Hash)>] Conversation data, response status code and response headers
2703
- def patch_conversations_call_with_http_info(conversation_id, body, opts = {})
3396
+ # @return [Array<(ConsultTransferResponse, Fixnum, Hash)>] ConsultTransferResponse data, response status code and response headers
3397
+ def patch_conversations_call_participant_consult_with_http_info(conversation_id, participant_id, body, opts = {})
2704
3398
  if @api_client.config.debugging
2705
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_call ..."
3399
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_call_participant_consult ..."
2706
3400
  end
2707
3401
 
2708
3402
 
2709
3403
  # verify the required parameter 'conversation_id' is set
2710
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_call" if conversation_id.nil?
3404
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_call_participant_consult" if conversation_id.nil?
3405
+
3406
+
3407
+
3408
+
3409
+
3410
+
3411
+ # verify the required parameter 'participant_id' is set
3412
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_call_participant_consult" if participant_id.nil?
2711
3413
 
2712
3414
 
2713
3415
 
@@ -2715,14 +3417,14 @@ module PureCloud
2715
3417
 
2716
3418
 
2717
3419
  # verify the required parameter 'body' is set
2718
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_call" if body.nil?
3420
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_call_participant_consult" if body.nil?
2719
3421
 
2720
3422
 
2721
3423
 
2722
3424
 
2723
3425
 
2724
3426
  # resource path
2725
- local_var_path = "/api/v2/conversations/calls/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
3427
+ local_var_path = "/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
2726
3428
 
2727
3429
  # query parameters
2728
3430
  query_params = {}
@@ -2751,48 +3453,38 @@ module PureCloud
2751
3453
  :form_params => form_params,
2752
3454
  :body => post_body,
2753
3455
  :auth_names => auth_names,
2754
- :return_type => 'Conversation')
3456
+ :return_type => 'ConsultTransferResponse')
2755
3457
  if @api_client.config.debugging
2756
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_call\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3458
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_call_participant_consult\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2757
3459
  end
2758
3460
  return data, status_code, headers
2759
3461
  end
2760
3462
 
2761
- # Update conversation participant
3463
+ # Update a conversation by disconnecting all of the participants
2762
3464
  #
2763
3465
  # @param conversation_id conversationId
2764
- # @param participant_id participantId
2765
- # @param body Participant request
3466
+ # @param body Conversation
2766
3467
  # @param [Hash] opts the optional parameters
2767
- # @return [nil]
2768
- def patch_conversations_call_participant(conversation_id, participant_id, body, opts = {})
2769
- patch_conversations_call_participant_with_http_info(conversation_id, participant_id, body, opts)
2770
- return nil
3468
+ # @return [Conversation]
3469
+ def patch_conversations_callback(conversation_id, body, opts = {})
3470
+ data, _status_code, _headers = patch_conversations_callback_with_http_info(conversation_id, body, opts)
3471
+ return data
2771
3472
  end
2772
3473
 
2773
- # Update conversation participant
3474
+ # Update a conversation by disconnecting all of the participants
2774
3475
  #
2775
3476
  # @param conversation_id conversationId
2776
- # @param participant_id participantId
2777
- # @param body Participant request
3477
+ # @param body Conversation
2778
3478
  # @param [Hash] opts the optional parameters
2779
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
2780
- def patch_conversations_call_participant_with_http_info(conversation_id, participant_id, body, opts = {})
3479
+ # @return [Array<(Conversation, Fixnum, Hash)>] Conversation data, response status code and response headers
3480
+ def patch_conversations_callback_with_http_info(conversation_id, body, opts = {})
2781
3481
  if @api_client.config.debugging
2782
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_call_participant ..."
3482
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_callback ..."
2783
3483
  end
2784
3484
 
2785
3485
 
2786
3486
  # verify the required parameter 'conversation_id' is set
2787
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_call_participant" if conversation_id.nil?
2788
-
2789
-
2790
-
2791
-
2792
-
2793
-
2794
- # verify the required parameter 'participant_id' is set
2795
- fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_call_participant" if participant_id.nil?
3487
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_callback" if conversation_id.nil?
2796
3488
 
2797
3489
 
2798
3490
 
@@ -2800,14 +3492,14 @@ module PureCloud
2800
3492
 
2801
3493
 
2802
3494
  # verify the required parameter 'body' is set
2803
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_call_participant" if body.nil?
3495
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_callback" if body.nil?
2804
3496
 
2805
3497
 
2806
3498
 
2807
3499
 
2808
3500
 
2809
3501
  # resource path
2810
- local_var_path = "/api/v2/conversations/calls/{conversationId}/participants/{participantId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
3502
+ local_var_path = "/api/v2/conversations/callbacks/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
2811
3503
 
2812
3504
  # query parameters
2813
3505
  query_params = {}
@@ -2835,40 +3527,41 @@ module PureCloud
2835
3527
  :query_params => query_params,
2836
3528
  :form_params => form_params,
2837
3529
  :body => post_body,
2838
- :auth_names => auth_names)
3530
+ :auth_names => auth_names,
3531
+ :return_type => 'Conversation')
2839
3532
  if @api_client.config.debugging
2840
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_call_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3533
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_callback\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2841
3534
  end
2842
3535
  return data, status_code, headers
2843
3536
  end
2844
3537
 
2845
- # Update the attributes on a conversation participant.
3538
+ # Update conversation participant
2846
3539
  #
2847
3540
  # @param conversation_id conversationId
2848
3541
  # @param participant_id participantId
2849
- # @param body Participant attributes
3542
+ # @param body Participant
2850
3543
  # @param [Hash] opts the optional parameters
2851
3544
  # @return [nil]
2852
- def patch_conversations_call_participant_attributes(conversation_id, participant_id, body, opts = {})
2853
- patch_conversations_call_participant_attributes_with_http_info(conversation_id, participant_id, body, opts)
3545
+ def patch_conversations_callback_participant(conversation_id, participant_id, body, opts = {})
3546
+ patch_conversations_callback_participant_with_http_info(conversation_id, participant_id, body, opts)
2854
3547
  return nil
2855
3548
  end
2856
3549
 
2857
- # Update the attributes on a conversation participant.
3550
+ # Update conversation participant
2858
3551
  #
2859
3552
  # @param conversation_id conversationId
2860
3553
  # @param participant_id participantId
2861
- # @param body Participant attributes
3554
+ # @param body Participant
2862
3555
  # @param [Hash] opts the optional parameters
2863
3556
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
2864
- def patch_conversations_call_participant_attributes_with_http_info(conversation_id, participant_id, body, opts = {})
3557
+ def patch_conversations_callback_participant_with_http_info(conversation_id, participant_id, body, opts = {})
2865
3558
  if @api_client.config.debugging
2866
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_call_participant_attributes ..."
3559
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_callback_participant ..."
2867
3560
  end
2868
3561
 
2869
3562
 
2870
3563
  # verify the required parameter 'conversation_id' is set
2871
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_call_participant_attributes" if conversation_id.nil?
3564
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_callback_participant" if conversation_id.nil?
2872
3565
 
2873
3566
 
2874
3567
 
@@ -2876,7 +3569,7 @@ module PureCloud
2876
3569
 
2877
3570
 
2878
3571
  # verify the required parameter 'participant_id' is set
2879
- fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_call_participant_attributes" if participant_id.nil?
3572
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_callback_participant" if participant_id.nil?
2880
3573
 
2881
3574
 
2882
3575
 
@@ -2884,14 +3577,14 @@ module PureCloud
2884
3577
 
2885
3578
 
2886
3579
  # verify the required parameter 'body' is set
2887
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_call_participant_attributes" if body.nil?
3580
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_callback_participant" if body.nil?
2888
3581
 
2889
3582
 
2890
3583
 
2891
3584
 
2892
3585
 
2893
3586
  # resource path
2894
- local_var_path = "/api/v2/conversations/calls/{conversationId}/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
3587
+ local_var_path = "/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
2895
3588
 
2896
3589
  # query parameters
2897
3590
  query_params = {}
@@ -2921,40 +3614,38 @@ module PureCloud
2921
3614
  :body => post_body,
2922
3615
  :auth_names => auth_names)
2923
3616
  if @api_client.config.debugging
2924
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_call_participant_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3617
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_callback_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2925
3618
  end
2926
3619
  return data, status_code, headers
2927
3620
  end
2928
3621
 
2929
- # Update conversation participant's communication by disconnecting it.
3622
+ # Update the attributes on a conversation participant.
2930
3623
  #
2931
3624
  # @param conversation_id conversationId
2932
3625
  # @param participant_id participantId
2933
- # @param communication_id communicationId
2934
- # @param body Participant
3626
+ # @param body Attributes
2935
3627
  # @param [Hash] opts the optional parameters
2936
- # @return [Empty]
2937
- def patch_conversations_call_participant_communication(conversation_id, participant_id, communication_id, body, opts = {})
2938
- data, _status_code, _headers = patch_conversations_call_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts)
2939
- return data
3628
+ # @return [nil]
3629
+ def patch_conversations_callback_participant_attributes(conversation_id, participant_id, body, opts = {})
3630
+ patch_conversations_callback_participant_attributes_with_http_info(conversation_id, participant_id, body, opts)
3631
+ return nil
2940
3632
  end
2941
3633
 
2942
- # Update conversation participant&#39;s communication by disconnecting it.
3634
+ # Update the attributes on a conversation participant.
2943
3635
  #
2944
3636
  # @param conversation_id conversationId
2945
3637
  # @param participant_id participantId
2946
- # @param communication_id communicationId
2947
- # @param body Participant
3638
+ # @param body Attributes
2948
3639
  # @param [Hash] opts the optional parameters
2949
- # @return [Array<(Empty, Fixnum, Hash)>] Empty data, response status code and response headers
2950
- def patch_conversations_call_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts = {})
3640
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
3641
+ def patch_conversations_callback_participant_attributes_with_http_info(conversation_id, participant_id, body, opts = {})
2951
3642
  if @api_client.config.debugging
2952
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_call_participant_communication ..."
3643
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_callback_participant_attributes ..."
2953
3644
  end
2954
3645
 
2955
3646
 
2956
3647
  # verify the required parameter 'conversation_id' is set
2957
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_call_participant_communication" if conversation_id.nil?
3648
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_callback_participant_attributes" if conversation_id.nil?
2958
3649
 
2959
3650
 
2960
3651
 
@@ -2962,15 +3653,7 @@ module PureCloud
2962
3653
 
2963
3654
 
2964
3655
  # verify the required parameter 'participant_id' is set
2965
- fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_call_participant_communication" if participant_id.nil?
2966
-
2967
-
2968
-
2969
-
2970
-
2971
-
2972
- # verify the required parameter 'communication_id' is set
2973
- fail ArgumentError, "Missing the required parameter 'communication_id' when calling ConversationsApi.patch_conversations_call_participant_communication" if communication_id.nil?
3656
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_callback_participant_attributes" if participant_id.nil?
2974
3657
 
2975
3658
 
2976
3659
 
@@ -2978,14 +3661,14 @@ module PureCloud
2978
3661
 
2979
3662
 
2980
3663
  # verify the required parameter 'body' is set
2981
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_call_participant_communication" if body.nil?
3664
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_callback_participant_attributes" if body.nil?
2982
3665
 
2983
3666
 
2984
3667
 
2985
3668
 
2986
3669
 
2987
3670
  # resource path
2988
- local_var_path = "/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s).sub('{' + 'communicationId' + '}', communication_id.to_s)
3671
+ local_var_path = "/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
2989
3672
 
2990
3673
  # query parameters
2991
3674
  query_params = {}
@@ -3013,41 +3696,42 @@ module PureCloud
3013
3696
  :query_params => query_params,
3014
3697
  :form_params => form_params,
3015
3698
  :body => post_body,
3016
- :auth_names => auth_names,
3017
- :return_type => 'Empty')
3699
+ :auth_names => auth_names)
3018
3700
  if @api_client.config.debugging
3019
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_call_participant_communication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3701
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_callback_participant_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3020
3702
  end
3021
3703
  return data, status_code, headers
3022
3704
  end
3023
3705
 
3024
- # Change who can speak
3706
+ # Update conversation participant's communication by disconnecting it.
3025
3707
  #
3026
3708
  # @param conversation_id conversationId
3027
3709
  # @param participant_id participantId
3028
- # @param body new speak to
3710
+ # @param communication_id communicationId
3711
+ # @param body Participant
3029
3712
  # @param [Hash] opts the optional parameters
3030
- # @return [ConsultTransferResponse]
3031
- def patch_conversations_call_participant_consult(conversation_id, participant_id, body, opts = {})
3032
- data, _status_code, _headers = patch_conversations_call_participant_consult_with_http_info(conversation_id, participant_id, body, opts)
3713
+ # @return [Empty]
3714
+ def patch_conversations_callback_participant_communication(conversation_id, participant_id, communication_id, body, opts = {})
3715
+ data, _status_code, _headers = patch_conversations_callback_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts)
3033
3716
  return data
3034
3717
  end
3035
3718
 
3036
- # Change who can speak
3719
+ # Update conversation participant&#39;s communication by disconnecting it.
3037
3720
  #
3038
3721
  # @param conversation_id conversationId
3039
3722
  # @param participant_id participantId
3040
- # @param body new speak to
3723
+ # @param communication_id communicationId
3724
+ # @param body Participant
3041
3725
  # @param [Hash] opts the optional parameters
3042
- # @return [Array<(ConsultTransferResponse, Fixnum, Hash)>] ConsultTransferResponse data, response status code and response headers
3043
- def patch_conversations_call_participant_consult_with_http_info(conversation_id, participant_id, body, opts = {})
3726
+ # @return [Array<(Empty, Fixnum, Hash)>] Empty data, response status code and response headers
3727
+ def patch_conversations_callback_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts = {})
3044
3728
  if @api_client.config.debugging
3045
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_call_participant_consult ..."
3729
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_callback_participant_communication ..."
3046
3730
  end
3047
3731
 
3048
3732
 
3049
3733
  # verify the required parameter 'conversation_id' is set
3050
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_call_participant_consult" if conversation_id.nil?
3734
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_callback_participant_communication" if conversation_id.nil?
3051
3735
 
3052
3736
 
3053
3737
 
@@ -3055,7 +3739,15 @@ module PureCloud
3055
3739
 
3056
3740
 
3057
3741
  # verify the required parameter 'participant_id' is set
3058
- fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_call_participant_consult" if participant_id.nil?
3742
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_callback_participant_communication" if participant_id.nil?
3743
+
3744
+
3745
+
3746
+
3747
+
3748
+
3749
+ # verify the required parameter 'communication_id' is set
3750
+ fail ArgumentError, "Missing the required parameter 'communication_id' when calling ConversationsApi.patch_conversations_callback_participant_communication" if communication_id.nil?
3059
3751
 
3060
3752
 
3061
3753
 
@@ -3063,14 +3755,14 @@ module PureCloud
3063
3755
 
3064
3756
 
3065
3757
  # verify the required parameter 'body' is set
3066
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_call_participant_consult" if body.nil?
3758
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_callback_participant_communication" if body.nil?
3067
3759
 
3068
3760
 
3069
3761
 
3070
3762
 
3071
3763
 
3072
3764
  # resource path
3073
- local_var_path = "/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
3765
+ local_var_path = "/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/communications/{communicationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s).sub('{' + 'communicationId' + '}', communication_id.to_s)
3074
3766
 
3075
3767
  # query parameters
3076
3768
  query_params = {}
@@ -3099,9 +3791,9 @@ module PureCloud
3099
3791
  :form_params => form_params,
3100
3792
  :body => post_body,
3101
3793
  :auth_names => auth_names,
3102
- :return_type => 'ConsultTransferResponse')
3794
+ :return_type => 'Empty')
3103
3795
  if @api_client.config.debugging
3104
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_call_participant_consult\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3796
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_callback_participant_communication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3105
3797
  end
3106
3798
  return data, status_code, headers
3107
3799
  end
@@ -3112,8 +3804,8 @@ module PureCloud
3112
3804
  # @param body Conversation
3113
3805
  # @param [Hash] opts the optional parameters
3114
3806
  # @return [Conversation]
3115
- def patch_conversations_callback(conversation_id, body, opts = {})
3116
- data, _status_code, _headers = patch_conversations_callback_with_http_info(conversation_id, body, opts)
3807
+ def patch_conversations_chat(conversation_id, body, opts = {})
3808
+ data, _status_code, _headers = patch_conversations_chat_with_http_info(conversation_id, body, opts)
3117
3809
  return data
3118
3810
  end
3119
3811
 
@@ -3123,14 +3815,14 @@ module PureCloud
3123
3815
  # @param body Conversation
3124
3816
  # @param [Hash] opts the optional parameters
3125
3817
  # @return [Array<(Conversation, Fixnum, Hash)>] Conversation data, response status code and response headers
3126
- def patch_conversations_callback_with_http_info(conversation_id, body, opts = {})
3818
+ def patch_conversations_chat_with_http_info(conversation_id, body, opts = {})
3127
3819
  if @api_client.config.debugging
3128
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_callback ..."
3820
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_chat ..."
3129
3821
  end
3130
3822
 
3131
3823
 
3132
3824
  # verify the required parameter 'conversation_id' is set
3133
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_callback" if conversation_id.nil?
3825
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_chat" if conversation_id.nil?
3134
3826
 
3135
3827
 
3136
3828
 
@@ -3138,14 +3830,14 @@ module PureCloud
3138
3830
 
3139
3831
 
3140
3832
  # verify the required parameter 'body' is set
3141
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_callback" if body.nil?
3833
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_chat" if body.nil?
3142
3834
 
3143
3835
 
3144
3836
 
3145
3837
 
3146
3838
 
3147
3839
  # resource path
3148
- local_var_path = "/api/v2/conversations/callbacks/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
3840
+ local_var_path = "/api/v2/conversations/chats/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
3149
3841
 
3150
3842
  # query parameters
3151
3843
  query_params = {}
@@ -3176,7 +3868,7 @@ module PureCloud
3176
3868
  :auth_names => auth_names,
3177
3869
  :return_type => 'Conversation')
3178
3870
  if @api_client.config.debugging
3179
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_callback\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3871
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_chat\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3180
3872
  end
3181
3873
  return data, status_code, headers
3182
3874
  end
@@ -3185,11 +3877,11 @@ module PureCloud
3185
3877
  #
3186
3878
  # @param conversation_id conversationId
3187
3879
  # @param participant_id participantId
3188
- # @param body Participant
3880
+ # @param body Update request
3189
3881
  # @param [Hash] opts the optional parameters
3190
3882
  # @return [nil]
3191
- def patch_conversations_callback_participant(conversation_id, participant_id, body, opts = {})
3192
- patch_conversations_callback_participant_with_http_info(conversation_id, participant_id, body, opts)
3883
+ def patch_conversations_chat_participant(conversation_id, participant_id, body, opts = {})
3884
+ patch_conversations_chat_participant_with_http_info(conversation_id, participant_id, body, opts)
3193
3885
  return nil
3194
3886
  end
3195
3887
 
@@ -3197,17 +3889,17 @@ module PureCloud
3197
3889
  #
3198
3890
  # @param conversation_id conversationId
3199
3891
  # @param participant_id participantId
3200
- # @param body Participant
3892
+ # @param body Update request
3201
3893
  # @param [Hash] opts the optional parameters
3202
3894
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
3203
- def patch_conversations_callback_participant_with_http_info(conversation_id, participant_id, body, opts = {})
3895
+ def patch_conversations_chat_participant_with_http_info(conversation_id, participant_id, body, opts = {})
3204
3896
  if @api_client.config.debugging
3205
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_callback_participant ..."
3897
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_chat_participant ..."
3206
3898
  end
3207
3899
 
3208
3900
 
3209
3901
  # verify the required parameter 'conversation_id' is set
3210
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_callback_participant" if conversation_id.nil?
3902
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_chat_participant" if conversation_id.nil?
3211
3903
 
3212
3904
 
3213
3905
 
@@ -3215,7 +3907,7 @@ module PureCloud
3215
3907
 
3216
3908
 
3217
3909
  # verify the required parameter 'participant_id' is set
3218
- fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_callback_participant" if participant_id.nil?
3910
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_chat_participant" if participant_id.nil?
3219
3911
 
3220
3912
 
3221
3913
 
@@ -3223,14 +3915,14 @@ module PureCloud
3223
3915
 
3224
3916
 
3225
3917
  # verify the required parameter 'body' is set
3226
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_callback_participant" if body.nil?
3918
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_chat_participant" if body.nil?
3227
3919
 
3228
3920
 
3229
3921
 
3230
3922
 
3231
3923
 
3232
3924
  # resource path
3233
- local_var_path = "/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
3925
+ local_var_path = "/api/v2/conversations/chats/{conversationId}/participants/{participantId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
3234
3926
 
3235
3927
  # query parameters
3236
3928
  query_params = {}
@@ -3260,7 +3952,7 @@ module PureCloud
3260
3952
  :body => post_body,
3261
3953
  :auth_names => auth_names)
3262
3954
  if @api_client.config.debugging
3263
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_callback_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3955
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_chat_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3264
3956
  end
3265
3957
  return data, status_code, headers
3266
3958
  end
@@ -3269,11 +3961,11 @@ module PureCloud
3269
3961
  #
3270
3962
  # @param conversation_id conversationId
3271
3963
  # @param participant_id participantId
3272
- # @param body Attributes
3964
+ # @param body Participant attributes
3273
3965
  # @param [Hash] opts the optional parameters
3274
3966
  # @return [nil]
3275
- def patch_conversations_callback_participant_attributes(conversation_id, participant_id, body, opts = {})
3276
- patch_conversations_callback_participant_attributes_with_http_info(conversation_id, participant_id, body, opts)
3967
+ def patch_conversations_chat_participant_attributes(conversation_id, participant_id, body, opts = {})
3968
+ patch_conversations_chat_participant_attributes_with_http_info(conversation_id, participant_id, body, opts)
3277
3969
  return nil
3278
3970
  end
3279
3971
 
@@ -3281,17 +3973,17 @@ module PureCloud
3281
3973
  #
3282
3974
  # @param conversation_id conversationId
3283
3975
  # @param participant_id participantId
3284
- # @param body Attributes
3976
+ # @param body Participant attributes
3285
3977
  # @param [Hash] opts the optional parameters
3286
3978
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
3287
- def patch_conversations_callback_participant_attributes_with_http_info(conversation_id, participant_id, body, opts = {})
3979
+ def patch_conversations_chat_participant_attributes_with_http_info(conversation_id, participant_id, body, opts = {})
3288
3980
  if @api_client.config.debugging
3289
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_callback_participant_attributes ..."
3981
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_chat_participant_attributes ..."
3290
3982
  end
3291
3983
 
3292
3984
 
3293
3985
  # verify the required parameter 'conversation_id' is set
3294
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_callback_participant_attributes" if conversation_id.nil?
3986
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_chat_participant_attributes" if conversation_id.nil?
3295
3987
 
3296
3988
 
3297
3989
 
@@ -3299,7 +3991,7 @@ module PureCloud
3299
3991
 
3300
3992
 
3301
3993
  # verify the required parameter 'participant_id' is set
3302
- fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_callback_participant_attributes" if participant_id.nil?
3994
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_chat_participant_attributes" if participant_id.nil?
3303
3995
 
3304
3996
 
3305
3997
 
@@ -3307,14 +3999,14 @@ module PureCloud
3307
3999
 
3308
4000
 
3309
4001
  # verify the required parameter 'body' is set
3310
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_callback_participant_attributes" if body.nil?
4002
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_chat_participant_attributes" if body.nil?
3311
4003
 
3312
4004
 
3313
4005
 
3314
4006
 
3315
4007
 
3316
4008
  # resource path
3317
- local_var_path = "/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
4009
+ local_var_path = "/api/v2/conversations/chats/{conversationId}/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
3318
4010
 
3319
4011
  # query parameters
3320
4012
  query_params = {}
@@ -3344,7 +4036,7 @@ module PureCloud
3344
4036
  :body => post_body,
3345
4037
  :auth_names => auth_names)
3346
4038
  if @api_client.config.debugging
3347
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_callback_participant_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4039
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_chat_participant_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3348
4040
  end
3349
4041
  return data, status_code, headers
3350
4042
  end
@@ -3357,8 +4049,8 @@ module PureCloud
3357
4049
  # @param body Participant
3358
4050
  # @param [Hash] opts the optional parameters
3359
4051
  # @return [Empty]
3360
- def patch_conversations_callback_participant_communication(conversation_id, participant_id, communication_id, body, opts = {})
3361
- data, _status_code, _headers = patch_conversations_callback_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts)
4052
+ def patch_conversations_chat_participant_communication(conversation_id, participant_id, communication_id, body, opts = {})
4053
+ data, _status_code, _headers = patch_conversations_chat_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts)
3362
4054
  return data
3363
4055
  end
3364
4056
 
@@ -3370,14 +4062,14 @@ module PureCloud
3370
4062
  # @param body Participant
3371
4063
  # @param [Hash] opts the optional parameters
3372
4064
  # @return [Array<(Empty, Fixnum, Hash)>] Empty data, response status code and response headers
3373
- def patch_conversations_callback_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts = {})
4065
+ def patch_conversations_chat_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts = {})
3374
4066
  if @api_client.config.debugging
3375
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_callback_participant_communication ..."
4067
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_chat_participant_communication ..."
3376
4068
  end
3377
4069
 
3378
4070
 
3379
4071
  # verify the required parameter 'conversation_id' is set
3380
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_callback_participant_communication" if conversation_id.nil?
4072
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_chat_participant_communication" if conversation_id.nil?
3381
4073
 
3382
4074
 
3383
4075
 
@@ -3385,7 +4077,7 @@ module PureCloud
3385
4077
 
3386
4078
 
3387
4079
  # verify the required parameter 'participant_id' is set
3388
- fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_callback_participant_communication" if participant_id.nil?
4080
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_chat_participant_communication" if participant_id.nil?
3389
4081
 
3390
4082
 
3391
4083
 
@@ -3393,7 +4085,7 @@ module PureCloud
3393
4085
 
3394
4086
 
3395
4087
  # verify the required parameter 'communication_id' is set
3396
- fail ArgumentError, "Missing the required parameter 'communication_id' when calling ConversationsApi.patch_conversations_callback_participant_communication" if communication_id.nil?
4088
+ fail ArgumentError, "Missing the required parameter 'communication_id' when calling ConversationsApi.patch_conversations_chat_participant_communication" if communication_id.nil?
3397
4089
 
3398
4090
 
3399
4091
 
@@ -3401,14 +4093,14 @@ module PureCloud
3401
4093
 
3402
4094
 
3403
4095
  # verify the required parameter 'body' is set
3404
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_callback_participant_communication" if body.nil?
4096
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_chat_participant_communication" if body.nil?
3405
4097
 
3406
4098
 
3407
4099
 
3408
4100
 
3409
4101
 
3410
4102
  # resource path
3411
- local_var_path = "/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/communications/{communicationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s).sub('{' + 'communicationId' + '}', communication_id.to_s)
4103
+ local_var_path = "/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s).sub('{' + 'communicationId' + '}', communication_id.to_s)
3412
4104
 
3413
4105
  # query parameters
3414
4106
  query_params = {}
@@ -3439,7 +4131,7 @@ module PureCloud
3439
4131
  :auth_names => auth_names,
3440
4132
  :return_type => 'Empty')
3441
4133
  if @api_client.config.debugging
3442
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_callback_participant_communication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4134
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_chat_participant_communication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3443
4135
  end
3444
4136
  return data, status_code, headers
3445
4137
  end
@@ -3450,8 +4142,8 @@ module PureCloud
3450
4142
  # @param body Conversation
3451
4143
  # @param [Hash] opts the optional parameters
3452
4144
  # @return [Conversation]
3453
- def patch_conversations_chat(conversation_id, body, opts = {})
3454
- data, _status_code, _headers = patch_conversations_chat_with_http_info(conversation_id, body, opts)
4145
+ def patch_conversations_cobrowsesession(conversation_id, body, opts = {})
4146
+ data, _status_code, _headers = patch_conversations_cobrowsesession_with_http_info(conversation_id, body, opts)
3455
4147
  return data
3456
4148
  end
3457
4149
 
@@ -3461,14 +4153,14 @@ module PureCloud
3461
4153
  # @param body Conversation
3462
4154
  # @param [Hash] opts the optional parameters
3463
4155
  # @return [Array<(Conversation, Fixnum, Hash)>] Conversation data, response status code and response headers
3464
- def patch_conversations_chat_with_http_info(conversation_id, body, opts = {})
4156
+ def patch_conversations_cobrowsesession_with_http_info(conversation_id, body, opts = {})
3465
4157
  if @api_client.config.debugging
3466
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_chat ..."
4158
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_cobrowsesession ..."
3467
4159
  end
3468
4160
 
3469
4161
 
3470
4162
  # verify the required parameter 'conversation_id' is set
3471
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_chat" if conversation_id.nil?
4163
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_cobrowsesession" if conversation_id.nil?
3472
4164
 
3473
4165
 
3474
4166
 
@@ -3476,14 +4168,14 @@ module PureCloud
3476
4168
 
3477
4169
 
3478
4170
  # verify the required parameter 'body' is set
3479
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_chat" if body.nil?
4171
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_cobrowsesession" if body.nil?
3480
4172
 
3481
4173
 
3482
4174
 
3483
4175
 
3484
4176
 
3485
4177
  # resource path
3486
- local_var_path = "/api/v2/conversations/chats/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
4178
+ local_var_path = "/api/v2/conversations/cobrowsesessions/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
3487
4179
 
3488
4180
  # query parameters
3489
4181
  query_params = {}
@@ -3514,7 +4206,7 @@ module PureCloud
3514
4206
  :auth_names => auth_names,
3515
4207
  :return_type => 'Conversation')
3516
4208
  if @api_client.config.debugging
3517
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_chat\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4209
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_cobrowsesession\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3518
4210
  end
3519
4211
  return data, status_code, headers
3520
4212
  end
@@ -3523,11 +4215,11 @@ module PureCloud
3523
4215
  #
3524
4216
  # @param conversation_id conversationId
3525
4217
  # @param participant_id participantId
3526
- # @param body Update request
3527
4218
  # @param [Hash] opts the optional parameters
4219
+ # @option opts [MediaParticipantRequest] :body
3528
4220
  # @return [nil]
3529
- def patch_conversations_chat_participant(conversation_id, participant_id, body, opts = {})
3530
- patch_conversations_chat_participant_with_http_info(conversation_id, participant_id, body, opts)
4221
+ def patch_conversations_cobrowsesession_participant(conversation_id, participant_id, opts = {})
4222
+ patch_conversations_cobrowsesession_participant_with_http_info(conversation_id, participant_id, opts)
3531
4223
  return nil
3532
4224
  end
3533
4225
 
@@ -3535,17 +4227,17 @@ module PureCloud
3535
4227
  #
3536
4228
  # @param conversation_id conversationId
3537
4229
  # @param participant_id participantId
3538
- # @param body Update request
3539
4230
  # @param [Hash] opts the optional parameters
4231
+ # @option opts [MediaParticipantRequest] :body
3540
4232
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
3541
- def patch_conversations_chat_participant_with_http_info(conversation_id, participant_id, body, opts = {})
4233
+ def patch_conversations_cobrowsesession_participant_with_http_info(conversation_id, participant_id, opts = {})
3542
4234
  if @api_client.config.debugging
3543
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_chat_participant ..."
4235
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_cobrowsesession_participant ..."
3544
4236
  end
3545
4237
 
3546
4238
 
3547
4239
  # verify the required parameter 'conversation_id' is set
3548
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_chat_participant" if conversation_id.nil?
4240
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_cobrowsesession_participant" if conversation_id.nil?
3549
4241
 
3550
4242
 
3551
4243
 
@@ -3553,22 +4245,20 @@ module PureCloud
3553
4245
 
3554
4246
 
3555
4247
  # verify the required parameter 'participant_id' is set
3556
- fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_chat_participant" if participant_id.nil?
4248
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_cobrowsesession_participant" if participant_id.nil?
3557
4249
 
3558
4250
 
3559
4251
 
3560
4252
 
3561
4253
 
3562
4254
 
3563
- # verify the required parameter 'body' is set
3564
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_chat_participant" if body.nil?
3565
4255
 
3566
4256
 
3567
4257
 
3568
4258
 
3569
4259
 
3570
4260
  # resource path
3571
- local_var_path = "/api/v2/conversations/chats/{conversationId}/participants/{participantId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
4261
+ local_var_path = "/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
3572
4262
 
3573
4263
  # query parameters
3574
4264
  query_params = {}
@@ -3588,7 +4278,7 @@ module PureCloud
3588
4278
  form_params = {}
3589
4279
 
3590
4280
  # http body (model)
3591
- post_body = @api_client.object_to_http_body(body)
4281
+ post_body = @api_client.object_to_http_body(opts[:'body'])
3592
4282
 
3593
4283
  auth_names = ['PureCloud Auth']
3594
4284
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
@@ -3598,7 +4288,7 @@ module PureCloud
3598
4288
  :body => post_body,
3599
4289
  :auth_names => auth_names)
3600
4290
  if @api_client.config.debugging
3601
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_chat_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4291
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_cobrowsesession_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3602
4292
  end
3603
4293
  return data, status_code, headers
3604
4294
  end
@@ -3607,11 +4297,11 @@ module PureCloud
3607
4297
  #
3608
4298
  # @param conversation_id conversationId
3609
4299
  # @param participant_id participantId
3610
- # @param body Participant attributes
3611
4300
  # @param [Hash] opts the optional parameters
4301
+ # @option opts [ParticipantAttributes] :body
3612
4302
  # @return [nil]
3613
- def patch_conversations_chat_participant_attributes(conversation_id, participant_id, body, opts = {})
3614
- patch_conversations_chat_participant_attributes_with_http_info(conversation_id, participant_id, body, opts)
4303
+ def patch_conversations_cobrowsesession_participant_attributes(conversation_id, participant_id, opts = {})
4304
+ patch_conversations_cobrowsesession_participant_attributes_with_http_info(conversation_id, participant_id, opts)
3615
4305
  return nil
3616
4306
  end
3617
4307
 
@@ -3619,17 +4309,17 @@ module PureCloud
3619
4309
  #
3620
4310
  # @param conversation_id conversationId
3621
4311
  # @param participant_id participantId
3622
- # @param body Participant attributes
3623
4312
  # @param [Hash] opts the optional parameters
4313
+ # @option opts [ParticipantAttributes] :body
3624
4314
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
3625
- def patch_conversations_chat_participant_attributes_with_http_info(conversation_id, participant_id, body, opts = {})
4315
+ def patch_conversations_cobrowsesession_participant_attributes_with_http_info(conversation_id, participant_id, opts = {})
3626
4316
  if @api_client.config.debugging
3627
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_chat_participant_attributes ..."
4317
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_cobrowsesession_participant_attributes ..."
3628
4318
  end
3629
4319
 
3630
4320
 
3631
4321
  # verify the required parameter 'conversation_id' is set
3632
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_chat_participant_attributes" if conversation_id.nil?
4322
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_cobrowsesession_participant_attributes" if conversation_id.nil?
3633
4323
 
3634
4324
 
3635
4325
 
@@ -3637,22 +4327,20 @@ module PureCloud
3637
4327
 
3638
4328
 
3639
4329
  # verify the required parameter 'participant_id' is set
3640
- fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_chat_participant_attributes" if participant_id.nil?
4330
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_cobrowsesession_participant_attributes" if participant_id.nil?
3641
4331
 
3642
4332
 
3643
4333
 
3644
4334
 
3645
4335
 
3646
4336
 
3647
- # verify the required parameter 'body' is set
3648
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_chat_participant_attributes" if body.nil?
3649
4337
 
3650
4338
 
3651
4339
 
3652
4340
 
3653
4341
 
3654
4342
  # resource path
3655
- local_var_path = "/api/v2/conversations/chats/{conversationId}/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
4343
+ local_var_path = "/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
3656
4344
 
3657
4345
  # query parameters
3658
4346
  query_params = {}
@@ -3672,7 +4360,7 @@ module PureCloud
3672
4360
  form_params = {}
3673
4361
 
3674
4362
  # http body (model)
3675
- post_body = @api_client.object_to_http_body(body)
4363
+ post_body = @api_client.object_to_http_body(opts[:'body'])
3676
4364
 
3677
4365
  auth_names = ['PureCloud Auth']
3678
4366
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
@@ -3682,7 +4370,7 @@ module PureCloud
3682
4370
  :body => post_body,
3683
4371
  :auth_names => auth_names)
3684
4372
  if @api_client.config.debugging
3685
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_chat_participant_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4373
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_cobrowsesession_participant_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3686
4374
  end
3687
4375
  return data, status_code, headers
3688
4376
  end
@@ -3695,8 +4383,8 @@ module PureCloud
3695
4383
  # @param body Participant
3696
4384
  # @param [Hash] opts the optional parameters
3697
4385
  # @return [Empty]
3698
- def patch_conversations_chat_participant_communication(conversation_id, participant_id, communication_id, body, opts = {})
3699
- data, _status_code, _headers = patch_conversations_chat_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts)
4386
+ def patch_conversations_cobrowsesession_participant_communication(conversation_id, participant_id, communication_id, body, opts = {})
4387
+ data, _status_code, _headers = patch_conversations_cobrowsesession_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts)
3700
4388
  return data
3701
4389
  end
3702
4390
 
@@ -3708,14 +4396,14 @@ module PureCloud
3708
4396
  # @param body Participant
3709
4397
  # @param [Hash] opts the optional parameters
3710
4398
  # @return [Array<(Empty, Fixnum, Hash)>] Empty data, response status code and response headers
3711
- def patch_conversations_chat_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts = {})
4399
+ def patch_conversations_cobrowsesession_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts = {})
3712
4400
  if @api_client.config.debugging
3713
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_chat_participant_communication ..."
4401
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_cobrowsesession_participant_communication ..."
3714
4402
  end
3715
4403
 
3716
4404
 
3717
4405
  # verify the required parameter 'conversation_id' is set
3718
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_chat_participant_communication" if conversation_id.nil?
4406
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_cobrowsesession_participant_communication" if conversation_id.nil?
3719
4407
 
3720
4408
 
3721
4409
 
@@ -3723,7 +4411,7 @@ module PureCloud
3723
4411
 
3724
4412
 
3725
4413
  # verify the required parameter 'participant_id' is set
3726
- fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_chat_participant_communication" if participant_id.nil?
4414
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_cobrowsesession_participant_communication" if participant_id.nil?
3727
4415
 
3728
4416
 
3729
4417
 
@@ -3731,7 +4419,7 @@ module PureCloud
3731
4419
 
3732
4420
 
3733
4421
  # verify the required parameter 'communication_id' is set
3734
- fail ArgumentError, "Missing the required parameter 'communication_id' when calling ConversationsApi.patch_conversations_chat_participant_communication" if communication_id.nil?
4422
+ fail ArgumentError, "Missing the required parameter 'communication_id' when calling ConversationsApi.patch_conversations_cobrowsesession_participant_communication" if communication_id.nil?
3735
4423
 
3736
4424
 
3737
4425
 
@@ -3739,14 +4427,14 @@ module PureCloud
3739
4427
 
3740
4428
 
3741
4429
  # verify the required parameter 'body' is set
3742
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_chat_participant_communication" if body.nil?
4430
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_cobrowsesession_participant_communication" if body.nil?
3743
4431
 
3744
4432
 
3745
4433
 
3746
4434
 
3747
4435
 
3748
4436
  # resource path
3749
- local_var_path = "/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s).sub('{' + 'communicationId' + '}', communication_id.to_s)
4437
+ local_var_path = "/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/communications/{communicationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s).sub('{' + 'communicationId' + '}', communication_id.to_s)
3750
4438
 
3751
4439
  # query parameters
3752
4440
  query_params = {}
@@ -3777,7 +4465,7 @@ module PureCloud
3777
4465
  :auth_names => auth_names,
3778
4466
  :return_type => 'Empty')
3779
4467
  if @api_client.config.debugging
3780
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_chat_participant_communication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4468
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_cobrowsesession_participant_communication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3781
4469
  end
3782
4470
  return data, status_code, headers
3783
4471
  end
@@ -3788,8 +4476,8 @@ module PureCloud
3788
4476
  # @param body Conversation
3789
4477
  # @param [Hash] opts the optional parameters
3790
4478
  # @return [Conversation]
3791
- def patch_conversations_cobrowsesession(conversation_id, body, opts = {})
3792
- data, _status_code, _headers = patch_conversations_cobrowsesession_with_http_info(conversation_id, body, opts)
4479
+ def patch_conversations_email(conversation_id, body, opts = {})
4480
+ data, _status_code, _headers = patch_conversations_email_with_http_info(conversation_id, body, opts)
3793
4481
  return data
3794
4482
  end
3795
4483
 
@@ -3799,14 +4487,14 @@ module PureCloud
3799
4487
  # @param body Conversation
3800
4488
  # @param [Hash] opts the optional parameters
3801
4489
  # @return [Array<(Conversation, Fixnum, Hash)>] Conversation data, response status code and response headers
3802
- def patch_conversations_cobrowsesession_with_http_info(conversation_id, body, opts = {})
4490
+ def patch_conversations_email_with_http_info(conversation_id, body, opts = {})
3803
4491
  if @api_client.config.debugging
3804
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_cobrowsesession ..."
4492
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_email ..."
3805
4493
  end
3806
4494
 
3807
4495
 
3808
4496
  # verify the required parameter 'conversation_id' is set
3809
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_cobrowsesession" if conversation_id.nil?
4497
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_email" if conversation_id.nil?
3810
4498
 
3811
4499
 
3812
4500
 
@@ -3814,14 +4502,14 @@ module PureCloud
3814
4502
 
3815
4503
 
3816
4504
  # verify the required parameter 'body' is set
3817
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_cobrowsesession" if body.nil?
4505
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_email" if body.nil?
3818
4506
 
3819
4507
 
3820
4508
 
3821
4509
 
3822
4510
 
3823
4511
  # resource path
3824
- local_var_path = "/api/v2/conversations/cobrowsesessions/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
4512
+ local_var_path = "/api/v2/conversations/emails/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
3825
4513
 
3826
4514
  # query parameters
3827
4515
  query_params = {}
@@ -3852,7 +4540,7 @@ module PureCloud
3852
4540
  :auth_names => auth_names,
3853
4541
  :return_type => 'Conversation')
3854
4542
  if @api_client.config.debugging
3855
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_cobrowsesession\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4543
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3856
4544
  end
3857
4545
  return data, status_code, headers
3858
4546
  end
@@ -3861,11 +4549,11 @@ module PureCloud
3861
4549
  #
3862
4550
  # @param conversation_id conversationId
3863
4551
  # @param participant_id participantId
4552
+ # @param body Update request
3864
4553
  # @param [Hash] opts the optional parameters
3865
- # @option opts [MediaParticipantRequest] :body
3866
4554
  # @return [nil]
3867
- def patch_conversations_cobrowsesession_participant(conversation_id, participant_id, opts = {})
3868
- patch_conversations_cobrowsesession_participant_with_http_info(conversation_id, participant_id, opts)
4555
+ def patch_conversations_email_participant(conversation_id, participant_id, body, opts = {})
4556
+ patch_conversations_email_participant_with_http_info(conversation_id, participant_id, body, opts)
3869
4557
  return nil
3870
4558
  end
3871
4559
 
@@ -3873,17 +4561,17 @@ module PureCloud
3873
4561
  #
3874
4562
  # @param conversation_id conversationId
3875
4563
  # @param participant_id participantId
4564
+ # @param body Update request
3876
4565
  # @param [Hash] opts the optional parameters
3877
- # @option opts [MediaParticipantRequest] :body
3878
4566
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
3879
- def patch_conversations_cobrowsesession_participant_with_http_info(conversation_id, participant_id, opts = {})
4567
+ def patch_conversations_email_participant_with_http_info(conversation_id, participant_id, body, opts = {})
3880
4568
  if @api_client.config.debugging
3881
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_cobrowsesession_participant ..."
4569
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_email_participant ..."
3882
4570
  end
3883
4571
 
3884
4572
 
3885
4573
  # verify the required parameter 'conversation_id' is set
3886
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_cobrowsesession_participant" if conversation_id.nil?
4574
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_email_participant" if conversation_id.nil?
3887
4575
 
3888
4576
 
3889
4577
 
@@ -3891,20 +4579,22 @@ module PureCloud
3891
4579
 
3892
4580
 
3893
4581
  # verify the required parameter 'participant_id' is set
3894
- fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_cobrowsesession_participant" if participant_id.nil?
4582
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_email_participant" if participant_id.nil?
3895
4583
 
3896
4584
 
3897
4585
 
3898
4586
 
3899
4587
 
3900
4588
 
4589
+ # verify the required parameter 'body' is set
4590
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_email_participant" if body.nil?
3901
4591
 
3902
4592
 
3903
4593
 
3904
4594
 
3905
4595
 
3906
4596
  # resource path
3907
- local_var_path = "/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
4597
+ local_var_path = "/api/v2/conversations/emails/{conversationId}/participants/{participantId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
3908
4598
 
3909
4599
  # query parameters
3910
4600
  query_params = {}
@@ -3924,7 +4614,7 @@ module PureCloud
3924
4614
  form_params = {}
3925
4615
 
3926
4616
  # http body (model)
3927
- post_body = @api_client.object_to_http_body(opts[:'body'])
4617
+ post_body = @api_client.object_to_http_body(body)
3928
4618
 
3929
4619
  auth_names = ['PureCloud Auth']
3930
4620
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
@@ -3934,7 +4624,7 @@ module PureCloud
3934
4624
  :body => post_body,
3935
4625
  :auth_names => auth_names)
3936
4626
  if @api_client.config.debugging
3937
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_cobrowsesession_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4627
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_email_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3938
4628
  end
3939
4629
  return data, status_code, headers
3940
4630
  end
@@ -3943,11 +4633,11 @@ module PureCloud
3943
4633
  #
3944
4634
  # @param conversation_id conversationId
3945
4635
  # @param participant_id participantId
4636
+ # @param body Participant attributes
3946
4637
  # @param [Hash] opts the optional parameters
3947
- # @option opts [ParticipantAttributes] :body
3948
4638
  # @return [nil]
3949
- def patch_conversations_cobrowsesession_participant_attributes(conversation_id, participant_id, opts = {})
3950
- patch_conversations_cobrowsesession_participant_attributes_with_http_info(conversation_id, participant_id, opts)
4639
+ def patch_conversations_email_participant_attributes(conversation_id, participant_id, body, opts = {})
4640
+ patch_conversations_email_participant_attributes_with_http_info(conversation_id, participant_id, body, opts)
3951
4641
  return nil
3952
4642
  end
3953
4643
 
@@ -3955,17 +4645,17 @@ module PureCloud
3955
4645
  #
3956
4646
  # @param conversation_id conversationId
3957
4647
  # @param participant_id participantId
4648
+ # @param body Participant attributes
3958
4649
  # @param [Hash] opts the optional parameters
3959
- # @option opts [ParticipantAttributes] :body
3960
4650
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
3961
- def patch_conversations_cobrowsesession_participant_attributes_with_http_info(conversation_id, participant_id, opts = {})
4651
+ def patch_conversations_email_participant_attributes_with_http_info(conversation_id, participant_id, body, opts = {})
3962
4652
  if @api_client.config.debugging
3963
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_cobrowsesession_participant_attributes ..."
4653
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_email_participant_attributes ..."
3964
4654
  end
3965
4655
 
3966
4656
 
3967
4657
  # verify the required parameter 'conversation_id' is set
3968
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_cobrowsesession_participant_attributes" if conversation_id.nil?
4658
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_email_participant_attributes" if conversation_id.nil?
3969
4659
 
3970
4660
 
3971
4661
 
@@ -3973,20 +4663,22 @@ module PureCloud
3973
4663
 
3974
4664
 
3975
4665
  # verify the required parameter 'participant_id' is set
3976
- fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_cobrowsesession_participant_attributes" if participant_id.nil?
4666
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_email_participant_attributes" if participant_id.nil?
3977
4667
 
3978
4668
 
3979
4669
 
3980
4670
 
3981
4671
 
3982
4672
 
4673
+ # verify the required parameter 'body' is set
4674
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_email_participant_attributes" if body.nil?
3983
4675
 
3984
4676
 
3985
4677
 
3986
4678
 
3987
4679
 
3988
4680
  # resource path
3989
- local_var_path = "/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
4681
+ local_var_path = "/api/v2/conversations/emails/{conversationId}/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
3990
4682
 
3991
4683
  # query parameters
3992
4684
  query_params = {}
@@ -4006,7 +4698,7 @@ module PureCloud
4006
4698
  form_params = {}
4007
4699
 
4008
4700
  # http body (model)
4009
- post_body = @api_client.object_to_http_body(opts[:'body'])
4701
+ post_body = @api_client.object_to_http_body(body)
4010
4702
 
4011
4703
  auth_names = ['PureCloud Auth']
4012
4704
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
@@ -4016,7 +4708,7 @@ module PureCloud
4016
4708
  :body => post_body,
4017
4709
  :auth_names => auth_names)
4018
4710
  if @api_client.config.debugging
4019
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_cobrowsesession_participant_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4711
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_email_participant_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4020
4712
  end
4021
4713
  return data, status_code, headers
4022
4714
  end
@@ -4029,8 +4721,8 @@ module PureCloud
4029
4721
  # @param body Participant
4030
4722
  # @param [Hash] opts the optional parameters
4031
4723
  # @return [Empty]
4032
- def patch_conversations_cobrowsesession_participant_communication(conversation_id, participant_id, communication_id, body, opts = {})
4033
- data, _status_code, _headers = patch_conversations_cobrowsesession_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts)
4724
+ def patch_conversations_email_participant_communication(conversation_id, participant_id, communication_id, body, opts = {})
4725
+ data, _status_code, _headers = patch_conversations_email_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts)
4034
4726
  return data
4035
4727
  end
4036
4728
 
@@ -4042,14 +4734,14 @@ module PureCloud
4042
4734
  # @param body Participant
4043
4735
  # @param [Hash] opts the optional parameters
4044
4736
  # @return [Array<(Empty, Fixnum, Hash)>] Empty data, response status code and response headers
4045
- def patch_conversations_cobrowsesession_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts = {})
4737
+ def patch_conversations_email_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts = {})
4046
4738
  if @api_client.config.debugging
4047
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_cobrowsesession_participant_communication ..."
4739
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_email_participant_communication ..."
4048
4740
  end
4049
4741
 
4050
4742
 
4051
4743
  # verify the required parameter 'conversation_id' is set
4052
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_cobrowsesession_participant_communication" if conversation_id.nil?
4744
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_email_participant_communication" if conversation_id.nil?
4053
4745
 
4054
4746
 
4055
4747
 
@@ -4057,7 +4749,7 @@ module PureCloud
4057
4749
 
4058
4750
 
4059
4751
  # verify the required parameter 'participant_id' is set
4060
- fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_cobrowsesession_participant_communication" if participant_id.nil?
4752
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_email_participant_communication" if participant_id.nil?
4061
4753
 
4062
4754
 
4063
4755
 
@@ -4065,7 +4757,7 @@ module PureCloud
4065
4757
 
4066
4758
 
4067
4759
  # verify the required parameter 'communication_id' is set
4068
- fail ArgumentError, "Missing the required parameter 'communication_id' when calling ConversationsApi.patch_conversations_cobrowsesession_participant_communication" if communication_id.nil?
4760
+ fail ArgumentError, "Missing the required parameter 'communication_id' when calling ConversationsApi.patch_conversations_email_participant_communication" if communication_id.nil?
4069
4761
 
4070
4762
 
4071
4763
 
@@ -4073,14 +4765,14 @@ module PureCloud
4073
4765
 
4074
4766
 
4075
4767
  # verify the required parameter 'body' is set
4076
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_cobrowsesession_participant_communication" if body.nil?
4768
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_email_participant_communication" if body.nil?
4077
4769
 
4078
4770
 
4079
4771
 
4080
4772
 
4081
4773
 
4082
4774
  # resource path
4083
- local_var_path = "/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/communications/{communicationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s).sub('{' + 'communicationId' + '}', communication_id.to_s)
4775
+ local_var_path = "/api/v2/conversations/emails/{conversationId}/participants/{participantId}/communications/{communicationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s).sub('{' + 'communicationId' + '}', communication_id.to_s)
4084
4776
 
4085
4777
  # query parameters
4086
4778
  query_params = {}
@@ -4111,7 +4803,7 @@ module PureCloud
4111
4803
  :auth_names => auth_names,
4112
4804
  :return_type => 'Empty')
4113
4805
  if @api_client.config.debugging
4114
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_cobrowsesession_participant_communication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4806
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_email_participant_communication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4115
4807
  end
4116
4808
  return data, status_code, headers
4117
4809
  end
@@ -4122,8 +4814,8 @@ module PureCloud
4122
4814
  # @param body Conversation
4123
4815
  # @param [Hash] opts the optional parameters
4124
4816
  # @return [Conversation]
4125
- def patch_conversations_email(conversation_id, body, opts = {})
4126
- data, _status_code, _headers = patch_conversations_email_with_http_info(conversation_id, body, opts)
4817
+ def patch_conversations_message(conversation_id, body, opts = {})
4818
+ data, _status_code, _headers = patch_conversations_message_with_http_info(conversation_id, body, opts)
4127
4819
  return data
4128
4820
  end
4129
4821
 
@@ -4133,14 +4825,14 @@ module PureCloud
4133
4825
  # @param body Conversation
4134
4826
  # @param [Hash] opts the optional parameters
4135
4827
  # @return [Array<(Conversation, Fixnum, Hash)>] Conversation data, response status code and response headers
4136
- def patch_conversations_email_with_http_info(conversation_id, body, opts = {})
4828
+ def patch_conversations_message_with_http_info(conversation_id, body, opts = {})
4137
4829
  if @api_client.config.debugging
4138
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_email ..."
4830
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_message ..."
4139
4831
  end
4140
4832
 
4141
4833
 
4142
4834
  # verify the required parameter 'conversation_id' is set
4143
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_email" if conversation_id.nil?
4835
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_message" if conversation_id.nil?
4144
4836
 
4145
4837
 
4146
4838
 
@@ -4148,14 +4840,14 @@ module PureCloud
4148
4840
 
4149
4841
 
4150
4842
  # verify the required parameter 'body' is set
4151
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_email" if body.nil?
4843
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_message" if body.nil?
4152
4844
 
4153
4845
 
4154
4846
 
4155
4847
 
4156
4848
 
4157
4849
  # resource path
4158
- local_var_path = "/api/v2/conversations/emails/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
4850
+ local_var_path = "/api/v2/conversations/messages/{conversationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
4159
4851
 
4160
4852
  # query parameters
4161
4853
  query_params = {}
@@ -4186,38 +4878,38 @@ module PureCloud
4186
4878
  :auth_names => auth_names,
4187
4879
  :return_type => 'Conversation')
4188
4880
  if @api_client.config.debugging
4189
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4881
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4190
4882
  end
4191
4883
  return data, status_code, headers
4192
4884
  end
4193
4885
 
4194
4886
  # Update conversation participant
4195
4887
  #
4196
- # @param conversation_id conversationId
4888
+ # @param conversation_id conversationId
4197
4889
  # @param participant_id participantId
4198
- # @param body Update request
4199
4890
  # @param [Hash] opts the optional parameters
4891
+ # @option opts [MediaParticipantRequest] :body
4200
4892
  # @return [nil]
4201
- def patch_conversations_email_participant(conversation_id, participant_id, body, opts = {})
4202
- patch_conversations_email_participant_with_http_info(conversation_id, participant_id, body, opts)
4893
+ def patch_conversations_message_participant(conversation_id, participant_id, opts = {})
4894
+ patch_conversations_message_participant_with_http_info(conversation_id, participant_id, opts)
4203
4895
  return nil
4204
4896
  end
4205
4897
 
4206
4898
  # Update conversation participant
4207
4899
  #
4208
- # @param conversation_id conversationId
4900
+ # @param conversation_id conversationId
4209
4901
  # @param participant_id participantId
4210
- # @param body Update request
4211
4902
  # @param [Hash] opts the optional parameters
4903
+ # @option opts [MediaParticipantRequest] :body
4212
4904
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
4213
- def patch_conversations_email_participant_with_http_info(conversation_id, participant_id, body, opts = {})
4905
+ def patch_conversations_message_participant_with_http_info(conversation_id, participant_id, opts = {})
4214
4906
  if @api_client.config.debugging
4215
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_email_participant ..."
4907
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_message_participant ..."
4216
4908
  end
4217
4909
 
4218
4910
 
4219
4911
  # verify the required parameter 'conversation_id' is set
4220
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_email_participant" if conversation_id.nil?
4912
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_message_participant" if conversation_id.nil?
4221
4913
 
4222
4914
 
4223
4915
 
@@ -4225,22 +4917,20 @@ module PureCloud
4225
4917
 
4226
4918
 
4227
4919
  # verify the required parameter 'participant_id' is set
4228
- fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_email_participant" if participant_id.nil?
4920
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_message_participant" if participant_id.nil?
4229
4921
 
4230
4922
 
4231
4923
 
4232
4924
 
4233
4925
 
4234
4926
 
4235
- # verify the required parameter 'body' is set
4236
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_email_participant" if body.nil?
4237
4927
 
4238
4928
 
4239
4929
 
4240
4930
 
4241
4931
 
4242
4932
  # resource path
4243
- local_var_path = "/api/v2/conversations/emails/{conversationId}/participants/{participantId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
4933
+ local_var_path = "/api/v2/conversations/messages/{conversationId}/participants/{participantId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
4244
4934
 
4245
4935
  # query parameters
4246
4936
  query_params = {}
@@ -4260,7 +4950,7 @@ module PureCloud
4260
4950
  form_params = {}
4261
4951
 
4262
4952
  # http body (model)
4263
- post_body = @api_client.object_to_http_body(body)
4953
+ post_body = @api_client.object_to_http_body(opts[:'body'])
4264
4954
 
4265
4955
  auth_names = ['PureCloud Auth']
4266
4956
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
@@ -4270,38 +4960,38 @@ module PureCloud
4270
4960
  :body => post_body,
4271
4961
  :auth_names => auth_names)
4272
4962
  if @api_client.config.debugging
4273
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_email_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4963
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_message_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4274
4964
  end
4275
4965
  return data, status_code, headers
4276
4966
  end
4277
4967
 
4278
4968
  # Update the attributes on a conversation participant.
4279
4969
  #
4280
- # @param conversation_id conversationId
4970
+ # @param conversation_id conversationId
4281
4971
  # @param participant_id participantId
4282
- # @param body Participant attributes
4283
4972
  # @param [Hash] opts the optional parameters
4973
+ # @option opts [ParticipantAttributes] :body
4284
4974
  # @return [nil]
4285
- def patch_conversations_email_participant_attributes(conversation_id, participant_id, body, opts = {})
4286
- patch_conversations_email_participant_attributes_with_http_info(conversation_id, participant_id, body, opts)
4975
+ def patch_conversations_message_participant_attributes(conversation_id, participant_id, opts = {})
4976
+ patch_conversations_message_participant_attributes_with_http_info(conversation_id, participant_id, opts)
4287
4977
  return nil
4288
4978
  end
4289
4979
 
4290
4980
  # Update the attributes on a conversation participant.
4291
4981
  #
4292
- # @param conversation_id conversationId
4982
+ # @param conversation_id conversationId
4293
4983
  # @param participant_id participantId
4294
- # @param body Participant attributes
4295
4984
  # @param [Hash] opts the optional parameters
4985
+ # @option opts [ParticipantAttributes] :body
4296
4986
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
4297
- def patch_conversations_email_participant_attributes_with_http_info(conversation_id, participant_id, body, opts = {})
4987
+ def patch_conversations_message_participant_attributes_with_http_info(conversation_id, participant_id, opts = {})
4298
4988
  if @api_client.config.debugging
4299
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_email_participant_attributes ..."
4989
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_message_participant_attributes ..."
4300
4990
  end
4301
4991
 
4302
4992
 
4303
4993
  # verify the required parameter 'conversation_id' is set
4304
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_email_participant_attributes" if conversation_id.nil?
4994
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_message_participant_attributes" if conversation_id.nil?
4305
4995
 
4306
4996
 
4307
4997
 
@@ -4309,22 +4999,20 @@ module PureCloud
4309
4999
 
4310
5000
 
4311
5001
  # verify the required parameter 'participant_id' is set
4312
- fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_email_participant_attributes" if participant_id.nil?
5002
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_message_participant_attributes" if participant_id.nil?
4313
5003
 
4314
5004
 
4315
5005
 
4316
5006
 
4317
5007
 
4318
5008
 
4319
- # verify the required parameter 'body' is set
4320
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_email_participant_attributes" if body.nil?
4321
5009
 
4322
5010
 
4323
5011
 
4324
5012
 
4325
5013
 
4326
5014
  # resource path
4327
- local_var_path = "/api/v2/conversations/emails/{conversationId}/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
5015
+ local_var_path = "/api/v2/conversations/messages/{conversationId}/participants/{participantId}/attributes".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
4328
5016
 
4329
5017
  # query parameters
4330
5018
  query_params = {}
@@ -4344,7 +5032,7 @@ module PureCloud
4344
5032
  form_params = {}
4345
5033
 
4346
5034
  # http body (model)
4347
- post_body = @api_client.object_to_http_body(body)
5035
+ post_body = @api_client.object_to_http_body(opts[:'body'])
4348
5036
 
4349
5037
  auth_names = ['PureCloud Auth']
4350
5038
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
@@ -4354,40 +5042,40 @@ module PureCloud
4354
5042
  :body => post_body,
4355
5043
  :auth_names => auth_names)
4356
5044
  if @api_client.config.debugging
4357
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_email_participant_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5045
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_message_participant_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4358
5046
  end
4359
5047
  return data, status_code, headers
4360
5048
  end
4361
5049
 
4362
5050
  # Update conversation participant's communication by disconnecting it.
4363
5051
  #
4364
- # @param conversation_id conversationId
5052
+ # @param conversation_id conversationId
4365
5053
  # @param participant_id participantId
4366
5054
  # @param communication_id communicationId
4367
5055
  # @param body Participant
4368
5056
  # @param [Hash] opts the optional parameters
4369
5057
  # @return [Empty]
4370
- def patch_conversations_email_participant_communication(conversation_id, participant_id, communication_id, body, opts = {})
4371
- data, _status_code, _headers = patch_conversations_email_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts)
5058
+ def patch_conversations_message_participant_communication(conversation_id, participant_id, communication_id, body, opts = {})
5059
+ data, _status_code, _headers = patch_conversations_message_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts)
4372
5060
  return data
4373
5061
  end
4374
5062
 
4375
5063
  # Update conversation participant&#39;s communication by disconnecting it.
4376
5064
  #
4377
- # @param conversation_id conversationId
5065
+ # @param conversation_id conversationId
4378
5066
  # @param participant_id participantId
4379
5067
  # @param communication_id communicationId
4380
5068
  # @param body Participant
4381
5069
  # @param [Hash] opts the optional parameters
4382
5070
  # @return [Array<(Empty, Fixnum, Hash)>] Empty data, response status code and response headers
4383
- def patch_conversations_email_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts = {})
5071
+ def patch_conversations_message_participant_communication_with_http_info(conversation_id, participant_id, communication_id, body, opts = {})
4384
5072
  if @api_client.config.debugging
4385
- @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_email_participant_communication ..."
5073
+ @api_client.config.logger.debug "Calling API: ConversationsApi.patch_conversations_message_participant_communication ..."
4386
5074
  end
4387
5075
 
4388
5076
 
4389
5077
  # verify the required parameter 'conversation_id' is set
4390
- fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_email_participant_communication" if conversation_id.nil?
5078
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.patch_conversations_message_participant_communication" if conversation_id.nil?
4391
5079
 
4392
5080
 
4393
5081
 
@@ -4395,7 +5083,7 @@ module PureCloud
4395
5083
 
4396
5084
 
4397
5085
  # verify the required parameter 'participant_id' is set
4398
- fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_email_participant_communication" if participant_id.nil?
5086
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.patch_conversations_message_participant_communication" if participant_id.nil?
4399
5087
 
4400
5088
 
4401
5089
 
@@ -4403,7 +5091,7 @@ module PureCloud
4403
5091
 
4404
5092
 
4405
5093
  # verify the required parameter 'communication_id' is set
4406
- fail ArgumentError, "Missing the required parameter 'communication_id' when calling ConversationsApi.patch_conversations_email_participant_communication" if communication_id.nil?
5094
+ fail ArgumentError, "Missing the required parameter 'communication_id' when calling ConversationsApi.patch_conversations_message_participant_communication" if communication_id.nil?
4407
5095
 
4408
5096
 
4409
5097
 
@@ -4411,14 +5099,14 @@ module PureCloud
4411
5099
 
4412
5100
 
4413
5101
  # verify the required parameter 'body' is set
4414
- fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_email_participant_communication" if body.nil?
5102
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.patch_conversations_message_participant_communication" if body.nil?
4415
5103
 
4416
5104
 
4417
5105
 
4418
5106
 
4419
5107
 
4420
5108
  # resource path
4421
- local_var_path = "/api/v2/conversations/emails/{conversationId}/participants/{participantId}/communications/{communicationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s).sub('{' + 'communicationId' + '}', communication_id.to_s)
5109
+ local_var_path = "/api/v2/conversations/messages/{conversationId}/participants/{participantId}/communications/{communicationId}".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s).sub('{' + 'communicationId' + '}', communication_id.to_s)
4422
5110
 
4423
5111
  # query parameters
4424
5112
  query_params = {}
@@ -4449,7 +5137,7 @@ module PureCloud
4449
5137
  :auth_names => auth_names,
4450
5138
  :return_type => 'Empty')
4451
5139
  if @api_client.config.debugging
4452
- @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_email_participant_communication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5140
+ @api_client.config.logger.debug "API called: ConversationsApi#patch_conversations_message_participant_communication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4453
5141
  end
4454
5142
  return data, status_code, headers
4455
5143
  end
@@ -6192,6 +6880,248 @@ module PureCloud
6192
6880
  return data, status_code, headers
6193
6881
  end
6194
6882
 
6883
+ # Send message
6884
+ #
6885
+ # @param conversation_id conversationId
6886
+ # @param communication_id communicationId
6887
+ # @param body Message
6888
+ # @param [Hash] opts the optional parameters
6889
+ # @return [MessageData]
6890
+ def post_conversations_message_communication_messages(conversation_id, communication_id, body, opts = {})
6891
+ data, _status_code, _headers = post_conversations_message_communication_messages_with_http_info(conversation_id, communication_id, body, opts)
6892
+ return data
6893
+ end
6894
+
6895
+ # Send message
6896
+ #
6897
+ # @param conversation_id conversationId
6898
+ # @param communication_id communicationId
6899
+ # @param body Message
6900
+ # @param [Hash] opts the optional parameters
6901
+ # @return [Array<(MessageData, Fixnum, Hash)>] MessageData data, response status code and response headers
6902
+ def post_conversations_message_communication_messages_with_http_info(conversation_id, communication_id, body, opts = {})
6903
+ if @api_client.config.debugging
6904
+ @api_client.config.logger.debug "Calling API: ConversationsApi.post_conversations_message_communication_messages ..."
6905
+ end
6906
+
6907
+
6908
+ # verify the required parameter 'conversation_id' is set
6909
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.post_conversations_message_communication_messages" if conversation_id.nil?
6910
+
6911
+
6912
+
6913
+
6914
+
6915
+
6916
+ # verify the required parameter 'communication_id' is set
6917
+ fail ArgumentError, "Missing the required parameter 'communication_id' when calling ConversationsApi.post_conversations_message_communication_messages" if communication_id.nil?
6918
+
6919
+
6920
+
6921
+
6922
+
6923
+
6924
+ # verify the required parameter 'body' is set
6925
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.post_conversations_message_communication_messages" if body.nil?
6926
+
6927
+
6928
+
6929
+
6930
+
6931
+ # resource path
6932
+ local_var_path = "/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'communicationId' + '}', communication_id.to_s)
6933
+
6934
+ # query parameters
6935
+ query_params = {}
6936
+
6937
+ # header parameters
6938
+ header_params = {}
6939
+
6940
+ # HTTP header 'Accept' (if needed)
6941
+ local_header_accept = ['application/json']
6942
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
6943
+
6944
+ # HTTP header 'Content-Type'
6945
+ local_header_content_type = ['application/json']
6946
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
6947
+
6948
+ # form parameters
6949
+ form_params = {}
6950
+
6951
+ # http body (model)
6952
+ post_body = @api_client.object_to_http_body(body)
6953
+
6954
+ auth_names = ['PureCloud Auth']
6955
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
6956
+ :header_params => header_params,
6957
+ :query_params => query_params,
6958
+ :form_params => form_params,
6959
+ :body => post_body,
6960
+ :auth_names => auth_names,
6961
+ :return_type => 'MessageData')
6962
+ if @api_client.config.debugging
6963
+ @api_client.config.logger.debug "API called: ConversationsApi#post_conversations_message_communication_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
6964
+ end
6965
+ return data, status_code, headers
6966
+ end
6967
+
6968
+ # Get messages in batch
6969
+ #
6970
+ # @param conversation_id conversationId
6971
+ # @param [Hash] opts the optional parameters
6972
+ # @option opts [Array<String>] :body messageIds
6973
+ # @return [TextMessageListing]
6974
+ def post_conversations_message_messages_bulk(conversation_id, opts = {})
6975
+ data, _status_code, _headers = post_conversations_message_messages_bulk_with_http_info(conversation_id, opts)
6976
+ return data
6977
+ end
6978
+
6979
+ # Get messages in batch
6980
+ #
6981
+ # @param conversation_id conversationId
6982
+ # @param [Hash] opts the optional parameters
6983
+ # @option opts [Array<String>] :body messageIds
6984
+ # @return [Array<(TextMessageListing, Fixnum, Hash)>] TextMessageListing data, response status code and response headers
6985
+ def post_conversations_message_messages_bulk_with_http_info(conversation_id, opts = {})
6986
+ if @api_client.config.debugging
6987
+ @api_client.config.logger.debug "Calling API: ConversationsApi.post_conversations_message_messages_bulk ..."
6988
+ end
6989
+
6990
+
6991
+ # verify the required parameter 'conversation_id' is set
6992
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.post_conversations_message_messages_bulk" if conversation_id.nil?
6993
+
6994
+
6995
+
6996
+
6997
+
6998
+
6999
+
7000
+
7001
+
7002
+
7003
+
7004
+ # resource path
7005
+ local_var_path = "/api/v2/conversations/messages/{conversationId}/messages/bulk".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s)
7006
+
7007
+ # query parameters
7008
+ query_params = {}
7009
+
7010
+ # header parameters
7011
+ header_params = {}
7012
+
7013
+ # HTTP header 'Accept' (if needed)
7014
+ local_header_accept = ['application/json']
7015
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
7016
+
7017
+ # HTTP header 'Content-Type'
7018
+ local_header_content_type = ['application/json']
7019
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
7020
+
7021
+ # form parameters
7022
+ form_params = {}
7023
+
7024
+ # http body (model)
7025
+ post_body = @api_client.object_to_http_body(opts[:'body'])
7026
+
7027
+ auth_names = ['PureCloud Auth']
7028
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
7029
+ :header_params => header_params,
7030
+ :query_params => query_params,
7031
+ :form_params => form_params,
7032
+ :body => post_body,
7033
+ :auth_names => auth_names,
7034
+ :return_type => 'TextMessageListing')
7035
+ if @api_client.config.debugging
7036
+ @api_client.config.logger.debug "API called: ConversationsApi#post_conversations_message_messages_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7037
+ end
7038
+ return data, status_code, headers
7039
+ end
7040
+
7041
+ # Replace this participant with the specified user and/or address
7042
+ #
7043
+ # @param conversation_id conversationId
7044
+ # @param participant_id participantId
7045
+ # @param body Transfer request
7046
+ # @param [Hash] opts the optional parameters
7047
+ # @return [nil]
7048
+ def post_conversations_message_participant_replace(conversation_id, participant_id, body, opts = {})
7049
+ post_conversations_message_participant_replace_with_http_info(conversation_id, participant_id, body, opts)
7050
+ return nil
7051
+ end
7052
+
7053
+ # Replace this participant with the specified user and/or address
7054
+ #
7055
+ # @param conversation_id conversationId
7056
+ # @param participant_id participantId
7057
+ # @param body Transfer request
7058
+ # @param [Hash] opts the optional parameters
7059
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
7060
+ def post_conversations_message_participant_replace_with_http_info(conversation_id, participant_id, body, opts = {})
7061
+ if @api_client.config.debugging
7062
+ @api_client.config.logger.debug "Calling API: ConversationsApi.post_conversations_message_participant_replace ..."
7063
+ end
7064
+
7065
+
7066
+ # verify the required parameter 'conversation_id' is set
7067
+ fail ArgumentError, "Missing the required parameter 'conversation_id' when calling ConversationsApi.post_conversations_message_participant_replace" if conversation_id.nil?
7068
+
7069
+
7070
+
7071
+
7072
+
7073
+
7074
+ # verify the required parameter 'participant_id' is set
7075
+ fail ArgumentError, "Missing the required parameter 'participant_id' when calling ConversationsApi.post_conversations_message_participant_replace" if participant_id.nil?
7076
+
7077
+
7078
+
7079
+
7080
+
7081
+
7082
+ # verify the required parameter 'body' is set
7083
+ fail ArgumentError, "Missing the required parameter 'body' when calling ConversationsApi.post_conversations_message_participant_replace" if body.nil?
7084
+
7085
+
7086
+
7087
+
7088
+
7089
+ # resource path
7090
+ local_var_path = "/api/v2/conversations/messages/{conversationId}/participants/{participantId}/replace".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s).sub('{' + 'participantId' + '}', participant_id.to_s)
7091
+
7092
+ # query parameters
7093
+ query_params = {}
7094
+
7095
+ # header parameters
7096
+ header_params = {}
7097
+
7098
+ # HTTP header 'Accept' (if needed)
7099
+ local_header_accept = ['application/json']
7100
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
7101
+
7102
+ # HTTP header 'Content-Type'
7103
+ local_header_content_type = ['application/json']
7104
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
7105
+
7106
+ # form parameters
7107
+ form_params = {}
7108
+
7109
+ # http body (model)
7110
+ post_body = @api_client.object_to_http_body(body)
7111
+
7112
+ auth_names = ['PureCloud Auth']
7113
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
7114
+ :header_params => header_params,
7115
+ :query_params => query_params,
7116
+ :form_params => form_params,
7117
+ :body => post_body,
7118
+ :auth_names => auth_names)
7119
+ if @api_client.config.debugging
7120
+ @api_client.config.logger.debug "API called: ConversationsApi#post_conversations_message_participant_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7121
+ end
7122
+ return data, status_code, headers
7123
+ end
7124
+
6195
7125
  # Set uuiData to be sent on future commands.
6196
7126
  #
6197
7127
  # @param conversation_id conversationId