aboutsummaryrefslogtreecommitdiff
path: root/docs/api/pleroma_api.md
diff options
context:
space:
mode:
authorkaniini <nenolod@gmail.com>2019-05-20 18:17:42 +0000
committerkaniini <nenolod@gmail.com>2019-05-20 18:17:42 +0000
commit943d1b2f269eaa1fc29702fed45eb8a11164598b (patch)
tree987eb9e5a5c85796de422dce0335ddf3aede256f /docs/api/pleroma_api.md
parent643b56347879698a60c206ffb6f4e1e70011c552 (diff)
parentdaeae8e2e7c506b72c66dea6ac790408f948ec16 (diff)
downloadpleroma-943d1b2f269eaa1fc29702fed45eb8a11164598b.tar.gz
Merge branch 'feature/user-configurable-mascot' into 'develop'
Feature: user configurable mascot See merge request pleroma/pleroma!1177
Diffstat (limited to 'docs/api/pleroma_api.md')
-rw-r--r--docs/api/pleroma_api.md39
1 files changed, 39 insertions, 0 deletions
diff --git a/docs/api/pleroma_api.md b/docs/api/pleroma_api.md
index dd0b6ca73..4d99a2d2b 100644
--- a/docs/api/pleroma_api.md
+++ b/docs/api/pleroma_api.md
@@ -252,6 +252,45 @@ See [Admin-API](Admin-API.md)
]
```
+## `/api/v1/pleroma/mascot`
+### Gets user mascot image
+* Method `GET`
+* Authentication: required
+
+* Response: JSON. Returns a mastodon media attachment entity.
+* Example response:
+```json
+{
+ "id": "abcdefg",
+ "url": "https://pleroma.example.org/media/abcdefg.png",
+ "type": "image",
+ "pleroma": {
+ "mime_type": "image/png"
+ }
+}
+```
+
+### Updates user mascot image
+* Method `PUT`
+* Authentication: required
+* Params:
+ * `image`: Multipart image
+* Response: JSON. Returns a mastodon media attachment entity
+ when successful, otherwise returns HTTP 415 `{"error": "error_msg"}`
+* Example response:
+```json
+{
+ "id": "abcdefg",
+ "url": "https://pleroma.example.org/media/abcdefg.png",
+ "type": "image",
+ "pleroma": {
+ "mime_type": "image/png"
+ }
+}
+```
+* Note: Behaves exactly the same as `POST /api/v1/upload`.
+ Can only accept images - any attempt to upload non-image files will be met with `HTTP 415 Unsupported Media Type`.
+
## `/api/pleroma/notification_settings`
### Updates user notification settings
* Method `PUT`