aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/API/pleroma_api.md13
1 files changed, 11 insertions, 2 deletions
diff --git a/docs/API/pleroma_api.md b/docs/API/pleroma_api.md
index 1b44f793a..edaf41d9f 100644
--- a/docs/API/pleroma_api.md
+++ b/docs/API/pleroma_api.md
@@ -548,17 +548,20 @@ Emoji reactions work a lot like favourites do. They make it possible to react to
]
```
-# Domain muting
+## Domain muting
View and update domain mutes.
## `GET /api/pleroma/domain_mutes`
+
### View domains the user has muted.
+
* Method: `GET`
* Authentication: required
* Params: None
* Response: JSON, a list of muted domains.
* Example Response:
+
```json
[
"example.com",
@@ -567,23 +570,29 @@ View and update domain mutes.
```
## `POST /api/pleroma/domain_mutes`
+
### Mute domain
+
* Method: `POST`
* Authentication: required
* Params:
* `domain` - domain to mute
* Example Response:
+
```json
{}
```
## `DELETE /api/pleroma/domain_mutes`
+
### Unmute domain
+
* Method: `DELETE`
* Authentication: required
* Params:
* `domain` - domain to unmute
* Example Response:
+
```json
{}
-``` \ No newline at end of file
+```