Why the display group in display details json is incorrect?

I am using docker version 1.24.1 and cms version 4.3.0.

The issue I am facing is that when I fetch the details of all displays or specific display, then the displaygroupid I get is incorrect, it shows me the default displaygroupid, which is even not showing in cms. How do I get the exact displaygroupid for each display using api. please help.