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.
| Operation | Barrier | Gate, chain, bollard, brain |
|---|---|---|
open | arm lowers | passage opens |
close | arm rises | passage 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
- 200
- 401
- 403
- 404
Account user is not logged in and they should log in again.
User does not have permission to access requested resource.
Resource that has been requested does not exist. User should not try to repeat this request.