Change barrier settings
POST/v2/products/:id/settings
Changes a barrier's auto-close, through a Gateway. Send one setting per call:
is_autoclose:trueorfalse(a JSON boolean, not1/0);autoclose_time: the delay in seconds, 5–60.
If you send both, only is_autoclose is applied. An empty body fails.
Asynchronous, like Operate a product: the response is an event_id, and the result arrives as a realtime lot_change or gateway_error. In lot_change, the barrier block calls these fields is_auto_close and auto_close_time. Needs the REMOTE_CONTROL feature.
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.