|
88 | 88 | from ..models import ConversationTagsUpdate |
89 | 89 | from ..models import ConversationThreadingWindow |
90 | 90 | from ..models import ConversationUser |
| 91 | +from ..models import ConversationUtilizationLabelUpdate |
91 | 92 | from ..models import CopyAttachmentsRequest |
92 | 93 | from ..models import CreateCallRequest |
93 | 94 | from ..models import CreateCallResponse |
@@ -8857,6 +8858,91 @@ def patch_conversation_secureattributes(self, conversation_id: str, body: 'Conve |
8857 | 8858 | callback=params.get('callback')) |
8858 | 8859 | return response |
8859 | 8860 |
|
| 8861 | + def patch_conversation_utilizationlabel(self, conversation_id: str, body: 'ConversationUtilizationLabelUpdate', **kwargs) -> str: |
| 8862 | + """ |
| 8863 | + Update the utilization label on a conversation. When there is no value provided, the system default label is applied |
| 8864 | + |
| 8865 | + patch_conversation_utilizationlabel is a preview method and is subject to both breaking and non-breaking changes at any time without notice |
| 8866 | + |
| 8867 | + This method makes a synchronous HTTP request by default. To make an |
| 8868 | + asynchronous HTTP request, please define a `callback` function |
| 8869 | + to be invoked when receiving the response. |
| 8870 | + >>> def callback_function(response): |
| 8871 | + >>> pprint(response) |
| 8872 | + >>> |
| 8873 | + >>> thread = api.patch_conversation_utilizationlabel(conversation_id, body, callback=callback_function) |
| 8874 | + |
| 8875 | + :param callback function: The callback function |
| 8876 | + for asynchronous request. (optional) |
| 8877 | + :param str conversation_id: conversation ID (required) |
| 8878 | + :param ConversationUtilizationLabelUpdate body: Conversation Utilization Label (required) |
| 8879 | + :return: str |
| 8880 | + If the method is called asynchronously, |
| 8881 | + returns the request thread. |
| 8882 | + """ |
| 8883 | + |
| 8884 | + all_params = ['conversation_id', 'body'] |
| 8885 | + all_params.append('callback') |
| 8886 | + |
| 8887 | + params = locals() |
| 8888 | + for key, val in iteritems(params['kwargs']): |
| 8889 | + if key not in all_params: |
| 8890 | + raise TypeError( |
| 8891 | + "Got an unexpected keyword argument '%s'" |
| 8892 | + " to method patch_conversation_utilizationlabel" % key |
| 8893 | + ) |
| 8894 | + params[key] = val |
| 8895 | + del params['kwargs'] |
| 8896 | + |
| 8897 | + # verify the required parameter 'conversation_id' is set |
| 8898 | + if ('conversation_id' not in params) or (params['conversation_id'] is None): |
| 8899 | + raise ValueError("Missing the required parameter `conversation_id` when calling `patch_conversation_utilizationlabel`") |
| 8900 | + # verify the required parameter 'body' is set |
| 8901 | + if ('body' not in params) or (params['body'] is None): |
| 8902 | + raise ValueError("Missing the required parameter `body` when calling `patch_conversation_utilizationlabel`") |
| 8903 | + |
| 8904 | + |
| 8905 | + resource_path = '/api/v2/conversations/{conversationId}/utilizationlabel'.replace('{format}', 'json') |
| 8906 | + path_params = {} |
| 8907 | + if 'conversation_id' in params: |
| 8908 | + path_params['conversationId'] = params['conversation_id'] |
| 8909 | + |
| 8910 | + query_params = {} |
| 8911 | + |
| 8912 | + header_params = {} |
| 8913 | + |
| 8914 | + form_params = [] |
| 8915 | + local_var_files = {} |
| 8916 | + |
| 8917 | + body_params = None |
| 8918 | + if 'body' in params: |
| 8919 | + body_params = params['body'] |
| 8920 | + |
| 8921 | + # HTTP header `Accept` |
| 8922 | + header_params['Accept'] = self.api_client.\ |
| 8923 | + select_header_accept(['application/json']) |
| 8924 | + if not header_params['Accept']: |
| 8925 | + del header_params['Accept'] |
| 8926 | + |
| 8927 | + # HTTP header `Content-Type` |
| 8928 | + header_params['Content-Type'] = self.api_client.\ |
| 8929 | + select_header_content_type(['application/json']) |
| 8930 | + |
| 8931 | + # Authentication setting |
| 8932 | + auth_settings = ['PureCloud OAuth'] |
| 8933 | + |
| 8934 | + response = self.api_client.call_api(resource_path, 'PATCH', |
| 8935 | + path_params, |
| 8936 | + query_params, |
| 8937 | + header_params, |
| 8938 | + body=body_params, |
| 8939 | + post_params=form_params, |
| 8940 | + files=local_var_files, |
| 8941 | + response_type='str', |
| 8942 | + auth_settings=auth_settings, |
| 8943 | + callback=params.get('callback')) |
| 8944 | + return response |
| 8945 | + |
8860 | 8946 | def patch_conversations_aftercallwork_conversation_id_participant_communication(self, conversation_id: str, participant_id: str, communication_id: str, body: 'AfterCallWorkUpdate', **kwargs) -> 'AfterCallWorkUpdate': |
8861 | 8947 | """ |
8862 | 8948 | Update after-call work for this conversation communication. |
|
0 commit comments