# Fetch the required composite states based on endpoint query parameters

**URL:** <https://forums.losant.com/t/fetch-the-required-composite-states-based-on-endpoint-query-parameters/4411>\
**Category:** Workflow Lab\
**Tags:** workflow\
**Created:** [March 15, 2022, 2:18pm UTC](https://forums.losant.com/t/fetch-the-required-composite-states-based-on-endpoint-query-parameters/4411 "2022-03-15T14:18:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krishnaiah\_Indyala](https://avatars.discourse-cdn.com/v4/letter/k/b487fb/32.png) [@Krishnaiah\_Indyala](https://forums.losant.com/u/Krishnaiah_Indyala)\
**Post date:** [March 15, 2022, 2:18pm UTC](https://forums.losant.com/t/fetch-the-required-composite-states-based-on-endpoint-query-parameters/4411/1 "2022-03-15T14:18:26Z")

</div>

Hi Losant Team,

I had tried different ways to get the composite states data based on endpoint query. I don’t know how to add coming query data into selected attributes of device Get. please see the screenshot for more information. I want to get device attributes(composite states) based on endpoint query parameters. In this case I want to pass tiltx, tilty and tiltz values to Get device selected attributes.

 ![Screenshot 2022-03-15 at 7.31.56 PM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/1/164e566e65ff3b3828111a4d4269061e289d949c.png)

---

<div class="post-metadata">

**Author:** ![Heath](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/heath/32/3036_2.png) [@Heath](https://forums.losant.com/u/Heath)\
**Post date:** [March 15, 2022, 3:48pm UTC](https://forums.losant.com/t/fetch-the-required-composite-states-based-on-endpoint-query-parameters/4411/2 "2022-03-15T15:48:26Z")

</div>

Hi @Krishnaiah_Indyala,

This is not currently something that is possible in Losant. I will follow up with our engineering team to work our a feature request and keep you updated on its development.

You can, alternatively, return all attributes for the device that you are querying and reply only with the data that you want to reply with.

Thank you,  
Heath

---

<div class="post-metadata">

**Author:** ![Krishnaiah\_Indyala](https://avatars.discourse-cdn.com/v4/letter/k/b487fb/32.png) [@Krishnaiah\_Indyala](https://forums.losant.com/u/Krishnaiah_Indyala)\
**Post date:** [March 15, 2022, 3:57pm UTC](https://forums.losant.com/t/fetch-the-required-composite-states-based-on-endpoint-query-parameters/4411/3 "2022-03-15T15:57:06Z")

</div>

Thanks @Heath . now I will follow the alternative solution, please inform to me after implementation done from your end.
