code: def put_json(self, url, data, cls=None, **kwargs):
          
          kwargs['data'] = to_json(data, cls=cls)
          kwargs['headers'] = self.default_headers
          return self.put(url, **kwargs).json()
docs: PUT data to the api-server
  
          :param url: resource location (eg: "/type/uuid")
          :type url: str
          :param cls: JSONEncoder class
          :type cls: JSONEncoder