# Include non-relevant groups and fields in ODK Central API responses

**URL:** <https://forum.getodk.org/t/include-non-relevant-groups-and-fields-in-odk-central-api-responses/33536>\
**Category:** Development\
**Tags:** odk-central\
**Created:** [May 12, 2021, 11:51am UTC](https://forum.getodk.org/t/include-non-relevant-groups-and-fields-in-odk-central-api-responses/33536 "2021-05-12T11:51:25Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![mathieubossaert](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/mathieubossaert/32/6131_2.png) [@mathieubossaert](https://forum.getodk.org/u/mathieubossaert)\
**Post date:** [May 18, 2021, 11:50am UTC](https://forum.getodk.org/t/include-non-relevant-groups-and-fields-in-odk-central-api-responses/33536/7 "2021-05-18T11:50:58Z")

</div>

Hi to all,  
using my [central2pg](https://forum.getodk.org/t/postgresql-set-of-functions-to-get-data-from-central/33350) set of PostgreSQL function with new forms, I am facing the same problem.  
I am using the api result to automatically generate database tables and I realized that questions are missing. It would be great to get all fields, including nulls in submission data.

As a temporary workaround, is it possible to query the API to get all fields for each table instead of the whole form ?  
The given json doe not help to know wich table is concerned by each attribute?

> **[ODK Central API · Apiary](https://odkcentral.docs.apiary.io/#reference/forms-and-submissions/'-individual-form/getting-form-schema-fields?console=1)**
>
> A place where APIs are kept.

Here is the form (sorry it is not the simplest one :  
[suivis\_mc\_costieres\_V2.xls](https://forum.getodk.org/uploads/short-url/5H5tJpQBh0DDkhAAUrJNlNGFTAY.xls) (27.5 KB)) and here a submission for the "releves\_indicateurs" table

```json
{"__id":"9f397e9780e26dedf9e63c7313bd7f66ee4b9375",
"__Submissions-id":"uuid:2b633df3-63c5-4f61-8625-7ea0e78585d9",
"infos_generales_cen_occitanie":{"suivi_controle":"controle_simple",
"espece":null,
"saison":null,
"maitrise_fonciere":"convention_mae"},
"infos_releve_ug":{"now_releve_ug":"2021-05-06T09:14:29.142+02:00",
"date_time_releve_ug":"2021-05-05T09:05:00.000+02:00",
"id_ug":2305},
"conformite":{"controle_interne_conformite":"conforme",
"controle_interne_description":null},
"previsionnel":{"previsionnel_a_faire":null,
"previsionnel_autre":null},
"observations":{"indices_presence":"non",
"presence_individus":"non",
"remarques_mae":null,
"remarques_ppte":null}
}

```

Thanks a lot 🙂

---

_[View the full topic](https://forum.getodk.org/t/include-non-relevant-groups-and-fields-in-odk-central-api-responses/33536)._
