Not all fields with "group-raw" interface returned when fetching from API `/fields/{collection}`

Hi, I’ve been trying to build a dynamic form in Angular by fetching the fields from /fields/{collection}. I noticed that those with "interface”: “group-raw”do not match those that can be seen on the data model on Directus Admin (/admin/settings/data-model/{collection}). I have 13 total of group-raw (some nested) when viewing the data model, but only 8 have “interface”: “group-raw”when looking at the API response JSON.

The thing is, those groups that do not appear on the list are referenced as parent groups of other fields, i.e. a group-rawinterface named “location_group” does not exist in the list but another field on the list has “location_group” as its group value.

Finally got the answer myself. This apparently happened after I added some existing fields into new groups, and the new groups weren’t viewable yet to the Public role by default (despite the fields within the groups being visible already).

This is what I did to fix this: in /admin/settings go to Access Policies, then choose the type of role used to access the API (e.g. Public) and then choose the collection for the fields and click “Read”, and then “Use Custom”. Go to the “Field Permissions” tab and check the groups needed to be viewed in the API (the child fields of said groups can be checked without the parent checked).