SEND Cloud to Device Message
POST/workspaces/:workspaceId/devices/:deviceId/c2d-messages
Sends message to a device. The message has time-to-live (TTL) of 48 hours after it is accepted by this API. If the device does not fetch the message in time or fails to process the message 10 times, the message is discarded.
Request
Path Parameters
workspaceId uuidrequired
deviceId stringrequired
Responses
- 202
- 400
- 404
- 423
Success. Message is accepted and will be delivered to device.
Invalid request. For example, when size limit is exceeded.
- application/problem+json
- Schema
- Example (from schema)
Schema
type stringnullable
title stringnullable
status int32nullable
detail stringnullable
instance stringnullable
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Device or workspace not found.
- application/problem+json
- Schema
- Example (from schema)
Schema
type stringnullable
title stringnullable
status int32nullable
detail stringnullable
instance stringnullable
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Workspace disabled.
- application/problem+json
- Schema
- Example (from schema)
Schema
type stringnullable
title stringnullable
status int32nullable
detail stringnullable
instance stringnullable
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Loading...