mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-18 18:56:24 +00:00
Document that the update lock can be forced on reboots and shutdowns
Closes #373 Change-Type: patch Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
This commit is contained in:
parent
e1e33b376e
commit
5d7d99c258
14
docs/API.md
14
docs/API.md
@ -108,7 +108,9 @@ $ curl -X POST --header "Content-Type:application/json" \
|
||||
|
||||
### POST /v1/reboot
|
||||
|
||||
Reboots the device
|
||||
Reboots the device. This will first try to stop applications, and fail if there is an update lock.
|
||||
An optional "force" parameter in the body overrides the lock when true (and the lock can also be overridden from
|
||||
the dashboard).
|
||||
|
||||
When successful, responds with 202 accepted and a JSON object:
|
||||
```json
|
||||
@ -119,6 +121,9 @@ When successful, responds with 202 accepted and a JSON object:
|
||||
```
|
||||
(This is implemented in Go)
|
||||
|
||||
#### Request body
|
||||
Can contain a `force` property, which if set to `true` will cause the update lock to be overridden.
|
||||
|
||||
#### Examples:
|
||||
From the app on the device:
|
||||
```bash
|
||||
@ -142,7 +147,9 @@ $ curl -X POST --header "Content-Type:application/json" \
|
||||
|
||||
### POST /v1/shutdown
|
||||
|
||||
**Dangerous**. Shuts down the device.
|
||||
**Dangerous**. Shuts down the device. This will first try to stop applications, and fail if there is an update lock.
|
||||
An optional "force" parameter in the body overrides the lock when true (and the lock can also be overridden from
|
||||
the dashboard).
|
||||
|
||||
When successful, responds with 202 accepted and a JSON object:
|
||||
```json
|
||||
@ -153,6 +160,9 @@ When successful, responds with 202 accepted and a JSON object:
|
||||
```
|
||||
(This is implemented in Go)
|
||||
|
||||
#### Request body
|
||||
Can contain a `force` property, which if set to `true` will cause the update lock to be overridden.
|
||||
|
||||
#### Examples:
|
||||
From the app on the device:
|
||||
```bash
|
||||
|
Loading…
Reference in New Issue
Block a user