yolo_put
PUT
/v1/yolo
const url = 'https://example.com/v1/yolo';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"mode":"off","for":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/v1/yolo \ --header 'Content-Type: application/json' \ --data '{ "mode": "off", "for": "example" }'Set YOLO mode, optionally for a duration after which it turns off. Applies to requests created afterwards; matching rules still win and requests that need a human answer (questions, fields, feedback policies, several approve options) stay pending. Emits yolo.changed.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
PUT /v1/yolo body.
object
mode
required
string
for
Optional duration (15m, 1h); absent = until turned off. Not valid with off.
string | null
Responses
Section titled “Responses”Media typeapplication/json
GET/PUT /v1/yolo response and the yolo.changed event payload.
object
mode
required
string
until
Unix milliseconds when the mode turns itself off; null = until turned off.
integer | null format: int64
Example
{ "mode": "off"}Invalid mode or duration
Remote device without decide scope