# How to receive response on cumulocity of a api

**URL:** <https://community.cumulocity.com/t/how-to-receive-response-on-cumulocity-of-a-api/941>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [May 19, 2022, 5:36am UTC](https://community.cumulocity.com/t/how-to-receive-response-on-cumulocity-of-a-api/941 "2022-05-19T05:36:29Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![sumit.singh](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@sumit.singh](https://community.cumulocity.com/u/sumit.singh)\
**Post date:** [May 31, 2022, 8:16am UTC](https://community.cumulocity.com/t/how-to-receive-response-on-cumulocity-of-a-api/941/21 "2022-05-31T08:16:43Z")

</div>

@Stefan_Witschel thanks for your support  
what if i will to send something from child device shell of cumulocity , will it work or not ?

---

<div class="post-metadata">

**Author:** ![Stefan\_Witschel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/stefan_witschel/32/31955_2.png) [@Stefan\_Witschel](https://community.cumulocity.com/u/Stefan_Witschel)\
**Post date:** [May 31, 2022, 8:26am UTC](https://community.cumulocity.com/t/how-to-receive-response-on-cumulocity-of-a-api/941/22 "2022-05-31T08:26:42Z")

</div>

It will, you just have to add an unique ID of the child device to the topic when sending 501, 502 or 503: s/us/{{Unique ID of Child Device}}

Example: s/us/myPrettyDevice123 (where myPrettyDevice123 is the Unique ID.  
Message: 501,c8y\_Command

---

<div class="post-metadata">

**Author:** ![sumit.singh](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@sumit.singh](https://community.cumulocity.com/u/sumit.singh)\
**Post date:** [May 31, 2022, 8:48am UTC](https://community.cumulocity.com/t/how-to-receive-response-on-cumulocity-of-a-api/941/23 "2022-05-31T08:48:27Z")

</div>

hi @Stefan_Witschel  
I am sending something from child device shell but not receiving at my subscribed topic it worked for parent device but not for child I am Attaching image take look

 ![child_device](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/a/2/a2a656b52bcb1b53a9d4c197b115a71bc71777cb.png)

please tell me where i am wrong

---

<div class="post-metadata">

**Author:** ![Stefan\_Witschel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/stefan_witschel/32/31955_2.png) [@Stefan\_Witschel](https://community.cumulocity.com/u/Stefan_Witschel)\
**Post date:** [May 31, 2022, 9:05am UTC](https://community.cumulocity.com/t/how-to-receive-response-on-cumulocity-of-a-api/941/24 "2022-05-31T09:05:57Z")

</div>

In your screen you are on the parent device I guess because there are child devices beneath that device.

If you send something from the child device shell you should receive something like this “511,myPrettyChildDevice,test” on the root device where “myPrettyChildDevice” is the unique ID of the child device.

If the child device has been created via MQTT it should also receive the operations of all child devices on the root device via “s/ds”. I just tested it, it is working fine for me.

---

<div class="post-metadata">

**Author:** ![sumit.singh](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@sumit.singh](https://community.cumulocity.com/u/sumit.singh)\
**Post date:** [May 31, 2022, 9:17am UTC](https://community.cumulocity.com/t/how-to-receive-response-on-cumulocity-of-a-api/941/25 "2022-05-31T09:17:02Z")

</div>

@Stefan_Witschel Thanks for confirming  
but this is child device of a parent device and it also have some child device .  
in this case it’s not working I will follow steps and get back to you .

---

<div class="post-metadata">

**Author:** ![sumit.singh](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@sumit.singh](https://community.cumulocity.com/u/sumit.singh)\
**Post date:** [June 1, 2022, 9:23am UTC](https://community.cumulocity.com/t/how-to-receive-response-on-cumulocity-of-a-api/941/26 "2022-06-01T09:23:33Z")

</div>

@Stefan_Witschel Thanks for your continues support it worked for both child device as well as parents device .

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [August 30, 2022, 9:23am UTC](https://community.cumulocity.com/t/how-to-receive-response-on-cumulocity-of-a-api/941/27 "2022-08-30T09:23:44Z")

</div>

Closed on August 30, 2022, 9:23am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

[Previous page](https://community.cumulocity.com/t/how-to-receive-response-on-cumulocity-of-a-api/941.md?page=1)
