Object API Aggregation Terms

Hello,

Are aggregation terms in the Object API working as intended? I am following the tutorial of the documentation,

Using Aggregation Terms with REST APIs - Liferay Official Documentation - Liferay Learn

but not even the example aggregationTerms seem to be working correctly. Using “description” as a term works, but hardly even makes sense, but “dateModified” does not seem to be a supported term and only ever returns 404. Practically the only ones I got to work where “title”, “description”, and “id”, which is not very useful.

I am looking to get tagged categories to work as aggregation terms, but while that works in the search api using

{
"facetConfigurations": [
{
"name": "category"
}
]
}

as the post request body, I don’t have that option in the object api.

Version: DXP 2025.Q1

1 Like

Hi @Simon_Maurer,

Like @RoselaineMarques mentioned, this looks like a :bug:.
I tested this both on 2025.q1 & master, both returned 404 errors.

I’ve made a request to update the documentation & shared the bug information as well.

Best,

Which liferay version are you using it?