Devices

Create Device Events

Changed on

Create events for a Device.

When a Device is managed by a SmartApp, the Device is responsible for creating events to update the Device attributes on the SmartThings Platform.

The OAuth token used must be for the SmartApp that created the Device.

post/devices/{deviceId}/events

Request

Request body

Example request

{
  "deviceEvents": [
    {
      "component": "main",
      "capability": "switchLevel",
      "attribute": "level",
      "value": 0,
      "unit": null,
      "data": null
    }
  ]
}

Response

Created events.

CreateDeviceEventsResponse required

Changes

    • info

      the security scope i:deviceprofiles was added to the endpoint's security scheme Bearer

    • info

      the security scope w:devices:* was removed from the endpoint's security scheme Bearer