'hierarchy' field not returned for Solution Articles using API V2

Hello,

We’re using V2 of the API to fetch Solution Articles, and as described here: Freshdesk, every article is returned with a “hierarchy” field.

This has been the situation for all help centers we’ve been fetching articles for. However, we recently came across a case where this field is not returned at all. Is there an explanation for that?

The documentation (as linked above) doesn’t state that this field can be optional. On top of that, the articles in question do have a hierarchy - as we fetch them through folders path, which are retrieved from categories, and so on - so conceptually they still should have hierarchy.

This is an example response for articles in one help center where “hierarchy” is not returned

// GET https://ultimatedemo.freshdesk.com/api/v2/solutions/folders/72000569780/articles

[
  {
    id: 72000623104,
    type: 1,
    status: 2,
    agent_id: 72045956365,
    created_at: '2024-01-10T16:58:58Z',
    category_id: 72000351568,
    folder_id: 72000569780,
    title: 'asdasd',
    updated_at: '2024-01-10T16:58:58Z',
    description: '<p dir="ltr">asd</p>',
    description_text: ' asd ',
    seo_data: { meta_title: '', meta_description: '' },
    tags: [],
    attachments: [],
    cloud_files: [],
    thumbs_up: 0,
    thumbs_down: 0,
    hits: 0,
    suggested: 0,
    feedback_count: 0,
    platforms: []
  }
]

The help center in question is: https://ultimatedemo.freshdesk.com.

Please advise if this is a bug from your end or if this is a legitimate use case we need to cater for in our code. Thanks in advance.

Hey @Mohamed_Abdelazim,

Welcome to the Freshworks Developer Community! :tada:

Thanks for reporting this, I’ve raised this over a support ticket to help you.