IoT Core Broker Service, REST: BrokerData.Publish
Статья создана
Обновлена 17 октября 2024 г.
Publishes message on behalf of specified broker
HTTP request
POST https://iot-data.api.cloud.yandex.net/iot-broker/v1/brokers/{brokerId}/publish
Path parameters
Field |
Description |
brokerId |
string Required field. ID of broker 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