Device - Send Device Event

Send a device-to-cloud message. See https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging for more information.

POST https://fully-qualified-iothubname.azure-devices.net/devices/{id}/messages/events?api-version=2020-03-13

URI Parameters

Name In Required Type Description
id
path True

string

Device ID.

api-version
query True

string

Version of the Api.

Request Header

Name Required Type Description
iothub-app-XXX

string

Optional application property prefixed with 'iothub-app-' to be placed in 'applicationProperties' section of the message ('iothub-app-' prefix will be stripped).

Responses

Name Type Description
204 No Content

No Content