---
title: "Executes the module method on the IoT Edge device."
method: POST
path: "/api/edge/devices/{deviceId}/{moduleName}/{methodName}"
tags: ["IoT Edge Devices"]
---

# Executes the module method on the IoT Edge device.

`POST /api/edge/devices/{deviceId}/{moduleName}/{methodName}`

## Path parameters

- `deviceId` string, required
- `moduleName` string, required
- `methodName` string, required

## Response `200`

Success

- C2Dresult — Cloud to Device message result.
  - `payload` string, nullable — The C2D result payload.
  - `status` integer — The C2D status.

---

[API](https://skmtc.net/cgi-fr/apis/azure-iot-hub-portal-api.md) · [All operations](https://skmtc.net/cgi-fr/apis/azure-iot-hub-portal-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cgi-fr/azure-iot-hub-portal-api/versions/ce058568b9f0/schema)
