def update_token_with_http_info(self, token_uuid, body, **kwargs):
    'Update token  # noqa: E501\n\n        This method makes a synchronous HTTP request by default. To make an\n        asynchronous HTTP request, please pass async_req=True\n        >>> thread = api.update_token_with_http_info(token_uuid, body, async_req=True)\n        >>> result = thread.get()\n\n        :param async_req bool: execute request asynchronously\n        :param str token_uuid: UUID (required)\n        :param V1Token body: Token body (required)\n        :param _return_http_data_only: response data without head status code\n                                       and headers\n        :param _preload_content: if False, the urllib3.HTTPResponse object will\n                                 be returned without reading/decoding response\n                                 data. Default is True.\n        :param _request_timeout: timeout setting for this request. If one\n                                 number provided, it will be total request\n                                 timeout. It can also be a pair (tuple) of\n                                 (connection, read) timeouts.\n        :return: tuple(V1Token, status_code(int), headers(HTTPHeaderDict))\n                 If the method is called asynchronously,\n                 returns the request thread.\n        '
    local_var_params = locals()
    all_params = ['token_uuid', 'body']
    all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
    for (key, val) in six.iteritems(local_var_params['kwargs']):
        if (key not in all_params):
            raise ApiTypeError(("Got an unexpected keyword argument '%s' to method update_token" % key))
        local_var_params[key] = val
    del local_var_params['kwargs']
    if (self.api_client.client_side_validation and (('token_uuid' not in local_var_params) or (local_var_params['token_uuid'] is None))):
        raise ApiValueError('Missing the required parameter `token_uuid` when calling `update_token`')
    if (self.api_client.client_side_validation and (('body' not in local_var_params) or (local_var_params['body'] is None))):
        raise ApiValueError('Missing the required parameter `body` when calling `update_token`')
    collection_formats = {}
    path_params = {}
    if ('token_uuid' in local_var_params):
        path_params['token.uuid'] = local_var_params['token_uuid']
    query_params = []
    header_params = {}
    form_params = []
    local_var_files = {}
    body_params = None
    if ('body' in local_var_params):
        body_params = local_var_params['body']
    header_params['Accept'] = self.api_client.select_header_accept(['application/json'])
    header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json'])
    auth_settings = ['ApiKey']
    return self.api_client.call_api('/api/v1/users/tokens/{token.uuid}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='V1Token', auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats)
Update token  # noqa: E501

This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_token_with_http_info(token_uuid, body, async_req=True)
>>> result = thread.get()

:param async_req bool: execute request asynchronously
:param str token_uuid: UUID (required)
:param V1Token body: Token body (required)
:param _return_http_data_only: response data without head status code
                               and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
                         be returned without reading/decoding response
                         data. Default is True.
:param _request_timeout: timeout setting for this request. If one
                         number provided, it will be total request
                         timeout. It can also be a pair (tuple) of
                         (connection, read) timeouts.
:return: tuple(V1Token, status_code(int), headers(HTTPHeaderDict))
         If the method is called asynchronously,
         returns the request thread.
def update_token_with_http_info(self, token_uuid, body, **kwargs):
    'Update token  # noqa: E501\n\n        This method makes a synchronous HTTP request by default. To make an\n        asynchronous HTTP request, please pass async_req=True\n        >>> thread = api.update_token_with_http_info(token_uuid, body, async_req=True)\n        >>> result = thread.get()\n\n        :param async_req bool: execute request asynchronously\n        :param str token_uuid: UUID (required)\n        :param V1Token body: Token body (required)\n        :param _return_http_data_only: response data without head status code\n                                       and headers\n        :param _preload_content: if False, the urllib3.HTTPResponse object will\n                                 be returned without reading/decoding response\n                                 data. Default is True.\n        :param _request_timeout: timeout setting for this request. If one\n                                 number provided, it will be total request\n                                 timeout. It can also be a pair (tuple) of\n                                 (connection, read) timeouts.\n        :return: tuple(V1Token, status_code(int), headers(HTTPHeaderDict))\n                 If the method is called asynchronously,\n                 returns the request thread.\n        '
    local_var_params = locals()
    all_params = ['token_uuid', 'body']
    all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
    for (key, val) in six.iteritems(local_var_params['kwargs']):
        if (key not in all_params):
            raise ApiTypeError(("Got an unexpected keyword argument '%s' to method update_token" % key))
        local_var_params[key] = val
    del local_var_params['kwargs']
    if (self.api_client.client_side_validation and (('token_uuid' not in local_var_params) or (local_var_params['token_uuid'] is None))):
        raise ApiValueError('Missing the required parameter `token_uuid` when calling `update_token`')
    if (self.api_client.client_side_validation and (('body' not in local_var_params) or (local_var_params['body'] is None))):
        raise ApiValueError('Missing the required parameter `body` when calling `update_token`')
    collection_formats = {}
    path_params = {}
    if ('token_uuid' in local_var_params):
        path_params['token.uuid'] = local_var_params['token_uuid']
    query_params = []
    header_params = {}
    form_params = []
    local_var_files = {}
    body_params = None
    if ('body' in local_var_params):
        body_params = local_var_params['body']
    header_params['Accept'] = self.api_client.select_header_accept(['application/json'])
    header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json'])
    auth_settings = ['ApiKey']
    return self.api_client.call_api('/api/v1/users/tokens/{token.uuid}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='V1Token', auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats)