code: def _update_request(self, data, options):
          
          data = json.dumps(data)
  
          if 'headers' not in options:
              options['headers'] = {}
  
          options['headers'].update({'Content-type': 'application/json'})
  
          return data, options
docs: Updates The resource data and header options