@@ -8023,6 +8023,90 @@ def post_analytics_conversations_details_query(self, body, **kwargs):
80238023 callback = params .get ('callback' ))
80248024 return response
80258025
8026+ def post_conversation_assign (self , conversation_id , body , ** kwargs ):
8027+ """
8028+ Attempts to manually assign a specified conversation to a specified agent. Ignores bullseye ring, PAR score, skills, and languages.
8029+
8030+
8031+ This method makes a synchronous HTTP request by default. To make an
8032+ asynchronous HTTP request, please define a `callback` function
8033+ to be invoked when receiving the response.
8034+ >>> def callback_function(response):
8035+ >>> pprint(response)
8036+ >>>
8037+ >>> thread = api.post_conversation_assign(conversation_id, body, callback=callback_function)
8038+
8039+ :param callback function: The callback function
8040+ for asynchronous request. (optional)
8041+ :param str conversation_id: conversation ID (required)
8042+ :param ConversationUser body: Targeted user (required)
8043+ :return: str
8044+ If the method is called asynchronously,
8045+ returns the request thread.
8046+ """
8047+
8048+ all_params = ['conversation_id' , 'body' ]
8049+ all_params .append ('callback' )
8050+
8051+ params = locals ()
8052+ for key , val in iteritems (params ['kwargs' ]):
8053+ if key not in all_params :
8054+ raise TypeError (
8055+ "Got an unexpected keyword argument '%s'"
8056+ " to method post_conversation_assign" % key
8057+ )
8058+ params [key ] = val
8059+ del params ['kwargs' ]
8060+
8061+ # verify the required parameter 'conversation_id' is set
8062+ if ('conversation_id' not in params ) or (params ['conversation_id' ] is None ):
8063+ raise ValueError ("Missing the required parameter `conversation_id` when calling `post_conversation_assign`" )
8064+ # verify the required parameter 'body' is set
8065+ if ('body' not in params ) or (params ['body' ] is None ):
8066+ raise ValueError ("Missing the required parameter `body` when calling `post_conversation_assign`" )
8067+
8068+
8069+ resource_path = '/api/v2/conversations/{conversationId}/assign' .replace ('{format}' , 'json' )
8070+ path_params = {}
8071+ if 'conversation_id' in params :
8072+ path_params ['conversationId' ] = params ['conversation_id' ]
8073+
8074+ query_params = {}
8075+
8076+ header_params = {}
8077+
8078+ form_params = []
8079+ local_var_files = {}
8080+
8081+ body_params = None
8082+ if 'body' in params :
8083+ body_params = params ['body' ]
8084+
8085+ # HTTP header `Accept`
8086+ header_params ['Accept' ] = self .api_client .\
8087+ select_header_accept (['application/json' ])
8088+ if not header_params ['Accept' ]:
8089+ del header_params ['Accept' ]
8090+
8091+ # HTTP header `Content-Type`
8092+ header_params ['Content-Type' ] = self .api_client .\
8093+ select_header_content_type (['application/json' ])
8094+
8095+ # Authentication setting
8096+ auth_settings = ['PureCloud OAuth' ]
8097+
8098+ response = self .api_client .call_api (resource_path , 'POST' ,
8099+ path_params ,
8100+ query_params ,
8101+ header_params ,
8102+ body = body_params ,
8103+ post_params = form_params ,
8104+ files = local_var_files ,
8105+ response_type = 'str' ,
8106+ auth_settings = auth_settings ,
8107+ callback = params .get ('callback' ))
8108+ return response
8109+
80268110 def post_conversation_disconnect (self , conversation_id , ** kwargs ):
80278111 """
80288112 Performs a full conversation teardown. Issues disconnect requests for any connected media. Applies a system wrap-up code to any participants that are pending wrap-up. This is not intended to be the normal way of ending interactions but is available in the event of problems with the application to allow a resynchronization of state across all components. It is recommended that users submit a support case if they are relying on this endpoint systematically as there is likely something that needs investigation.
0 commit comments