code: def rest_put(url, data, timeout):
      '''Call rest put method'''
      try:
          response = requests.put(url, headers={'Accept': 'application/json', 'Content-Type': 'application/json'},\
                                  data=data, timeout=timeout)
          return response
      except Exception as e:
          print('Get exception {0} when sending http put to url {1}'.format(str(e), url))
          return Nonf rest_put(url, data, timeout):
      '''Call rest put method'''
      try:
          response = requests.put(url, headers={'Accept': 'application/json', 'Content-Type': 'application/json'},\
                                  data=data, timeout=timeout)
          return response
      except Exception as e:
          print('Get exception {0} when sending http put to url {1}'.format(str(e), url))
          return None
docs: Call rest put method