---
title: "Updates the device model's commands."
method: POST
path: "/api/lorawan/models/{id}/commands"
tags: ["LoRa WAN"]
---

# Updates the device model's commands.

`POST /api/lorawan/models/{id}/commands`

## Path parameters

- `id` string, required

## Request body

- DeviceModelCommandDto[]
  - `id` string, nullable — The command identifier.
  - `name` string, required — The command name.
  - `frame` string, required — The command frame in hexa.
  - `confirmed` boolean — A value indicating if the command must be confirmed by sensor
  - `port` integer, required — The LoRa WAN port.
  - `isBuiltin` boolean — A value indicating whether this instance is builtin.

## Response `200`

Success

---

[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)
