code: def put(url, data=None, **kwargs):
      
      _set_content_type(kwargs)
      if _content_type_is_json(kwargs) and data is not None:
          data = dumps(data)
      _log_request('PUT', url, kwargs, data)
      response = requests.put(url, data, **kwargs)
      _log_response(response)
      return response
docs: A wrapper for ``requests.put``. Sends a PUT request.