From 7e05dc01c58543e4f972aea788a147d18c28ca3b Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Mon, 16 Jul 2018 20:52:06 +0200 Subject: [PATCH] add documentation for muting reblogs (#637) Pleaaaaaase always update the api documentation after a mastodon release --- Using-the-API/API.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Using-the-API/API.md b/Using-the-API/API.md index b26e7c54..eb4ff212 100644 --- a/Using-the-API/API.md +++ b/Using-the-API/API.md @@ -166,9 +166,18 @@ Query parameters: Returns an array of [Statuses](#status). -#### Following/unfollowing an account: +#### Following an account: POST /api/v1/accounts/:id/follow + +| Field | Description | Optional | +| -------------- | ----------------------------------------- | ---------- | +| `reblogs` | Determines whether the followed account's reblogs will show up in the home timeline | yes | + +Returns the target account's [Relationship](#relationship). + +#### Unfollowing an account: + POST /api/v1/accounts/:id/unfollow Returns the target account's [Relationship](#relationship). @@ -945,6 +954,7 @@ The most important part of an error response is the HTTP status code. Standard s | `muting_notifications` | Whether the user is also muting notifications | no | | `requested` | Whether the user has requested to follow the account | no | | `domain_blocking` | Whether the user is currently blocking the accounts's domain | no | +| `showing_reblogs` | Whether the user's reblogs will show up in the home timeline | no | ### Report