IoT Core Service, REST: DeviceData.Publish
Статья создана
Обновлена 8 августа 2025 г.
Publishes message on behalf of specified device
HTTP request
POST https://iot-data.api.cloud.yandex.net/iot-devices/v1/devices/{deviceId}/publish
Path parameters
|
Field |
Description |
|
deviceId |
string Required field. ID of device publishing message |
Body parameters
{
"topic": "string",
"data": "string"
}
|
Field |
Description |
|
topic |
string Required field. Topic where message should be published |
|
data |
string (bytes) Content of the message |
Response
HTTP Code: 200 - OK