# Operation command

**URL:** <https://community.cumulocity.com/t/operation-command/7976>\
**Category:** Forum\
**Tags:** cumulocity-edge, device-management, operations, platform-services, rest-api\
**Created:** [February 3, 2025, 3:04pm UTC](https://community.cumulocity.com/t/operation-command/7976 "2025-02-03T15:04:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rapatel](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@rapatel](https://community.cumulocity.com/u/rapatel)\
**Post date:** [February 3, 2025, 3:04pm UTC](https://community.cumulocity.com/t/operation-command/7976/1 "2025-02-03T15:04:06Z")

</div>

Hi,

Am using update operation command, and it is executing successfully, But I don’t know how to read its response in my machine

---

<div class="post-metadata">

**Author:** ![Christian\_Guether1](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/christian_guether1/32/14848_2.png) [@Christian\_Guether1](https://community.cumulocity.com/u/Christian_Guether1)\
**Post date:** [February 4, 2025, 8:20am UTC](https://community.cumulocity.com/t/operation-command/7976/2 "2025-02-04T08:20:27Z")

</div>

Hi,

can you share more information on what you are trying to achieve?

Are you developing a device agent or what do you mean by reading the response on your machine?

---

<div class="post-metadata">

**Author:** ![rapatel](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@rapatel](https://community.cumulocity.com/u/rapatel)\
**Post date:** [February 4, 2025, 11:15am UTC](https://community.cumulocity.com/t/operation-command/7976/3 "2025-02-04T11:15:23Z")

</div>

Thanks for your response.  
Actually am using one update command( **{“Update”:“MotorStatus”}** ) via POST method from my laptop. But I don’t know the the way to get back the response of this command.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/7/7/77faf94e2c36183a13c96a7ec70be45f4ad71e01.png)

---

<div class="post-metadata">

**Author:** ![Hendrik\_Naether1](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/hendrik_naether1/32/17494_2.png) [@Hendrik\_Naether1](https://community.cumulocity.com/u/Hendrik_Naether1)\
**Post date:** [February 10, 2025, 9:08am UTC](https://community.cumulocity.com/t/operation-command/7976/4 "2025-02-10T09:08:46Z")

</div>

Hi, operations are working in an asynchronous way. That means you won’t directly receive the response in your POST request. Operations are updated by the source device, e.g. to change their state to PENDING, SUCCESSFUL or FAILED.

If you want to track that in the UI, you need to register for realtime updates of your source device using the OperationRealtimeService. That way, you get notified once operations are updated:

```typescript
import { OperationRealtimeService } from '@c8y/ngx-components';

constructor(private operationRealtime: OperationRealtimeService) {}

this.operationRealtime.onUpdate$(deviceId).susbscribe(update => {
  // do sth
});

```
