def get_body_fields(self, model):
        fields = self.extra_body_fields[:]

        if hasattr(model, 'api_fields'):
            fields.extend(model.api_fields)

        return fields
This returns a list of field names that are allowed to
dataset/ETHPy150Open torchbox/wagtail/wagtail/api/v2/endpoints.py/BaseAPIEndpoint.get_body_fields