code: def update(self, query, payload):
          
  
          if not isinstance(payload, dict):
              raise InvalidUsage("Update payload must be of type dict")
  
          record = self.get(query).one()
  
          self._url = self._url_builder.get_appended_custom("/{0}".format(record['sys_id']))
          return self._get_response('PUT', data=json.dumps(payload))
docs: Updates a record
  
          :param query: Dictionary, string or :class:`QueryBuilder` object
          :param payload: Dictionary payload
          :return:
              - Dictionary of the updated record