IoT Core Broker Service, REST: BrokerData.publish
Written by
Updated at July 25, 2023
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
Parameter | Description |
---|---|
brokerId | Required. ID of broker publishing message The maximum string length in characters is 50. |
Body parameters
{
"topic": "string",
"data": "string"
}
Field | Description |
---|---|
topic | string Required. Topic where message should be published The maximum string length in characters is 1024. |
data | string (byte) Content of the message The maximum string length in characters is 262144. |
Response
HTTP Code: 200 - OK