Skip to content

Commit 48b9c81

Browse files
Fix error in API docs for /url write method
After having issues with this API, I checked the source code and realised the /url path accepts POST, not PUT, in order to change url.
1 parent f9902c5 commit 48b9c81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ Re-scans the device to find local HTTP or HTTPS services to display. This can be
166166
#### **GET** /url
167167
Returns the URL currently being displayed
168168

169-
#### **PUT** /url
169+
#### **POST** /url
170170
Sets the URL to be displayed. The URL is set in the request body. Example:
171171

172172
```bash
173-
curl --data "url=www.balena.io" http://localhost:5011/url
173+
curl -X POST --data "url=www.balena.io" http://localhost:5011/url
174174
```
175175

176176
You can also pre-set the kiosk and GPU settings as part of a URL put request. Example:

0 commit comments

Comments
 (0)