diff options
author | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2022-08-12 01:34:36 +0000 |
---|---|---|
committer | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2022-08-12 01:34:36 +0000 |
commit | 93f12c0d0df445cf85f36a34c6a542cd2fa4d96a (patch) | |
tree | 9e5dc114397034e73ffc8fdb8d1fe97ea1b63b06 /docs/development | |
parent | 6ce3f76b5d2d59082df607e8187032c825b5bbb6 (diff) | |
parent | 8113dd31ee5d4d50c2b864d46242e1c3b6e889be (diff) | |
download | pleroma-93f12c0d0df445cf85f36a34c6a542cd2fa4d96a.tar.gz |
Merge branch 'from/upstream-develop/tusooa/sync-settings' into 'develop'
Synchronized settings for apps (frontends)
See merge request pleroma/pleroma!3698
Diffstat (limited to 'docs/development')
-rw-r--r-- | docs/development/API/pleroma_api.md | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/docs/development/API/pleroma_api.md b/docs/development/API/pleroma_api.md index a92c3c291..47fcb7479 100644 --- a/docs/development/API/pleroma_api.md +++ b/docs/development/API/pleroma_api.md @@ -725,3 +725,42 @@ Emoji reactions work a lot like favourites do. They make it possible to react to * Authentication: required * Params: none * Response: HTTP 200 on success, 500 on error + +## `/api/v1/pleroma/settings/:app` +### Gets settings for some application +* Method `GET` +* Authentication: `read:accounts` + +* Response: JSON. The settings for that application, or empty object if there is none. +* Example response: +```json +{ + "some key": "some value" +} +``` + +### Updates settings for some application +* Method `PATCH` +* Authentication: `write:accounts` +* Request body: JSON object. The object will be merged recursively with old settings. If some field is set to null, it is removed. +* Example request: +```json +{ + "some key": "some value", + "key to remove": null, + "nested field": { + "some key": "some value", + "key to remove": null + } +} +``` +* Response: JSON. Updated (merged) settings for that application. +* Example response: +```json +{ + "some key": "some value", + "nested field": { + "some key": "some value", + } +} +``` |