@staticmethod
def _raise_missing_attribute(cls, query_key, missing_attribute, amend_msg=''):
    """Raises error for missing attribute in a message suitable for the REST user"""
    raise AttributeError(
        f'To query {cls._class_name} for {query_key} you must provide {missing_attribute}.'
        )
