summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authortusooa <tusooa@kazv.moe>2022-09-05 15:00:19 +0000
committertusooa <tusooa@kazv.moe>2022-09-05 15:00:19 +0000
commit9874b4c985ea715a37cf2d2a5c8db2fb26e28f3a (patch)
treee495f10d3cac124d405cfe01015821a930f3a1df /docs
parente06f2b9f5ea58c90cafd7864a66809fe8ea0a96f (diff)
parentf8afba95b20670b5d6e93896ccd27bb3fca003a2 (diff)
downloadpleroma-9874b4c985ea715a37cf2d2a5c8db2fb26e28f3a.tar.gz
pleroma-9874b4c985ea715a37cf2d2a5c8db2fb26e28f3a.zip
Merge branch 'develop' into 'from/upstream-develop/tusooa/2892-backup-scope'
# Conflicts: # CHANGELOG.md
Diffstat (limited to 'docs')
-rw-r--r--docs/development/API/differences_in_mastoapi_responses.md4
-rw-r--r--docs/development/API/pleroma_api.md39
2 files changed, 43 insertions, 0 deletions
diff --git a/docs/development/API/differences_in_mastoapi_responses.md b/docs/development/API/differences_in_mastoapi_responses.md
index 73c46fff8..4007c63c8 100644
--- a/docs/development/API/differences_in_mastoapi_responses.md
+++ b/docs/development/API/differences_in_mastoapi_responses.md
@@ -40,6 +40,10 @@ Has these additional fields under the `pleroma` object:
- `parent_visible`: If the parent of this post is visible to the user or not.
- `pinned_at`: a datetime (iso8601) when status was pinned, `null` otherwise.
+The `GET /api/v1/statuses/:id/source` endpoint additionally has the following attributes:
+
+- `content_type`: The content type of the status source.
+
## Scheduled statuses
Has these additional fields in `params`:
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",
+ }
+}
+```