# Rest API in Mautic 5 delivers empty result array but no error

**URL:** <https://forum.mautic.org/t/rest-api-in-mautic-5-delivers-empty-result-array-but-no-error/30596>\
**Category:** Development\
**Created:** [January 21, 2024, 7:55pm UTC](https://forum.mautic.org/t/rest-api-in-mautic-5-delivers-empty-result-array-but-no-error/30596 "2024-01-21T19:55:57Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [January 24, 2024, 9:14pm UTC](https://forum.mautic.org/t/rest-api-in-mautic-5-delivers-empty-result-array-but-no-error/30596/6 "2024-01-24T21:14:19Z")

</div>

There is a method in Entity\Lead.php that sets groups for this serializer.

> <https://github.com/mautic/mautic/blob/3be38f31b6b5d8d8c7e1feff30dd4d388619ff70/app/bundles/LeadBundle/Entity/Lead.php#L427>

---

_[View the full topic](https://forum.mautic.org/t/rest-api-in-mautic-5-delivers-empty-result-array-but-no-error/30596)._
