code: def put(self, path, data, **options):
          
          parameter_options = self._parse_parameter_options(options)
          body = {
              # values in the data body takes precendence
              'data': _merge(parameter_options, data),
              'options': self._parse_api_options(options)
          }
          headers = _merge(
              {'content-type': 'application/json'},
              options.pop('headers', {})
          )
          return self.request('put', path, data=body, headers=headers, **options)
docs: Parses PUT request options and dispatches a request.