Skip to main content

Operate a product

POST 

/v2/products/:id/state

Sends an operation to a product through a Gateway. Asynchronous: the response is an event_id, and the result arrives later over realtime: a lot_change with the same event_id on success, or a gateway_error on failure. Connect to realtime before you call this.

OperationBarrierGate, chain, bollard, brain
openarm lowerspassage opens
closearm risespassage closes
force_close✅—
stay_open, stay_close, clear_stay_open, clear_stay_close—✅

The API doesn't check the combination: check it yourself. Needs the REMOTE_CONTROL feature.

Errors before anything is sent: 214 (an operation on this product is still running), 704 (no Gateway sees the product), 206 (not paired), 30 (no remote control in the subscription).

See Asynchronous operations and the Remote control guide.

Request​

Responses​