docs: def _check_json_data(self, json_data):
          """
          Ensure that the request body is both a hash and has a data key.
  
          :param json_data: The json data provided with the request
          """
          if not isinstance(json_data, dict):
              raise BadRequestError('Request body should be a JSON hash')
          if 'data' not in json_data.keys():
              raise BadRequestError('Request should contain data key')