Skip to main content

I grouped items in content definition settings, but the JSON returned by the API is not grouped. What should I do?

From the endpoint settings > basic settings, enabling ext_group will return the JSON with grouping.

How to set the ext_group parameter

  1. Click [API] in the left sidebar menu.

  2. Select the target endpoint and click [Edit].

  3. In the [Basic Settings] tab, enable the ext_group parameter.

Image from Gyazo

This will ensure that items grouped in the content definition are also grouped in the JSON response from the API.

Response Examples

Without ext_group parameter

{
"errors": [],
"messages": [],
"details": {
...
"ext_1": "value1",
"ext_2": "value2"
}
}

With ext_group parameter enabled

{
"errors": [],
"messages": [],
"details": {
...
"ext_1": {
"ext_1": "value1",
"ext_2": "value2"
}
}
}

Support

If you have any other questions, please contact us or check out Our Slack Community.