Relay information & management

Activate relay output

Control a relay output state. Use "state" to set a specific state (on/off), or omit to toggle. When state is "on", you can optionally provide "pulseDuration" to auto-turn off after the specified milliseconds.

post/v1/relays/{id}/outputs/{outputId}/activate

Request

Path parameters

idstring required

The primary key of relay

Example:66d025b301ebc903e80003ea
outputIdinteger required

Output channel ID (0 or 1)

Request body

state'on' | 'off'

Desired output state. If omitted, toggles the current state.

pulseDurationinteger

Auto-off duration in milliseconds (only applies when state is "on"). If greater than 0, the output auto-turns off after the specified duration.

Response

The relay output activation was initiated successfully.

Changes

No recorded changes to this operation across all 1 revision of this API.