You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/API.md
+75Lines changed: 75 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,10 @@ Returns an array of board items
115
115
"deletedAt": 0,
116
116
"id": 10,
117
117
"lastModified": 1586269585,
118
+
"settings": {
119
+
"notify-due": "off",
120
+
"calendar": true
121
+
}
118
122
}
119
123
]
120
124
```
@@ -952,6 +956,77 @@ For now only `deck_file` is supported as an attachment type.
952
956
The following endpoints are available through the Nextcloud OCS endpoint, which is available at `/ocs/v2.php/apps/deck/api/v1.0/`.
953
957
This has the benefit that both the web UI as well as external integrations can use the same API.
954
958
959
+
## Config
960
+
961
+
Deck stores user and app configuration values globally and per board. The GET endpoint allows to fetch the current global configuration while board settings will be exposed through the board element on the regular API endpoints.
962
+
963
+
### GET /api/v1.0/config - Fetch app configuration values
964
+
965
+
#### Response
966
+
967
+
| Config key | Description | Value |
968
+
| --- | --- |
969
+
| calendar | Determines if the calendar/tasks integration through the CalDAV backend is enabled for the user (boolean) |
970
+
| groupLimit | Determines if creating new boards is limited to certain groups of the instance. The resulting output is an array of group objects with the id and the displayname (Admin only)|
971
+
972
+
```
973
+
{
974
+
"ocs": {
975
+
"meta": {
976
+
"status": "ok",
977
+
"statuscode": 200,
978
+
"message": "OK"
979
+
},
980
+
"data": {
981
+
"calendar": true,
982
+
"groupLimit": [
983
+
{
984
+
"id": "admin",
985
+
"displayname": "admin"
986
+
}
987
+
]
988
+
}
989
+
}
990
+
}
991
+
992
+
```
993
+
994
+
### POST /api/v1.0/config/{id}/{key} - Set a config value
0 commit comments