Improve blocks, mutes and endorsements APIs
This commit is contained in:
parent
7f4e00e44b
commit
7d449509af
|
@ -14,7 +14,7 @@ Returns array of [Account]({{< relref "entities.md#account" >}})
|
||||||
|
|
||||||
### Resource information
|
### Resource information
|
||||||
|
|
||||||
{{< api_method_info auth="Yes" user="Yes" scope="read read:blocks follow" version="0.0.0" >}}
|
{{< api_method_info auth="Yes" user="Yes" scope="read:blocks follow" version="0.0.0" >}}
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
|
@ -25,3 +25,23 @@ Returns array of [Account]({{< relref "entities.md#account" >}})
|
||||||
### Pagination
|
### Pagination
|
||||||
|
|
||||||
{{< api_pagination >}}
|
{{< api_pagination >}}
|
||||||
|
|
||||||
|
## POST /api/v1/accounts/:id/block
|
||||||
|
|
||||||
|
Block an account.
|
||||||
|
|
||||||
|
Returns [Relationship]({{< relref "entities.md#relationship" >}})
|
||||||
|
|
||||||
|
### Resource information
|
||||||
|
|
||||||
|
{{< api_method_info auth="Yes" user="Yes" scope="write:blocks follow" version="0.0.0" >}}
|
||||||
|
|
||||||
|
## POST /api/v1/accounts/:id/unblock
|
||||||
|
|
||||||
|
Unblock an account.
|
||||||
|
|
||||||
|
Returns [Relationship]({{< relref "entities.md#relationship" >}})
|
||||||
|
|
||||||
|
### Resource information
|
||||||
|
|
||||||
|
{{< api_method_info auth="Yes" user="Yes" scope="write:blocks follow" version="0.0.0" >}}
|
||||||
|
|
|
@ -19,3 +19,23 @@ Returns array of [Account]({{< relref "entities.md#account" >}})
|
||||||
### Pagination
|
### Pagination
|
||||||
|
|
||||||
{{< api_pagination >}}
|
{{< api_pagination >}}
|
||||||
|
|
||||||
|
## POST /api/v1/accounts/:id/pin
|
||||||
|
|
||||||
|
Endorse an account, i.e. choose to feature the account on the user's public profile.
|
||||||
|
|
||||||
|
Returns [Relationship]({{< relref "entities.md#relationship" >}})
|
||||||
|
|
||||||
|
### Resource information
|
||||||
|
|
||||||
|
{{< api_method_info auth="Yes" user="Yes" scope="write write:accounts" version="0.0.0" >}}
|
||||||
|
|
||||||
|
## POST /api/v1/accounts/:id/unpin
|
||||||
|
|
||||||
|
Undo endorse of an account.
|
||||||
|
|
||||||
|
Returns [Relationship]({{< relref "entities.md#relationship" >}})
|
||||||
|
|
||||||
|
### Resource information
|
||||||
|
|
||||||
|
{{< api_method_info auth="Yes" user="Yes" scope="write write:accounts" version="0.0.0" >}}
|
||||||
|
|
|
@ -14,7 +14,7 @@ Returns array of [Account]({{< relref "entities.md#account" >}})
|
||||||
|
|
||||||
### Resource information
|
### Resource information
|
||||||
|
|
||||||
{{< api_method_info auth="Yes" user="Yes" scope="read read:mutes follow" version="0.0.0" >}}
|
{{< api_method_info auth="Yes" user="Yes" scope="read:mutes follow" version="0.0.0" >}}
|
||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
|
@ -25,3 +25,29 @@ Returns array of [Account]({{< relref "entities.md#account" >}})
|
||||||
### Pagination
|
### Pagination
|
||||||
|
|
||||||
{{< api_pagination >}}
|
{{< api_pagination >}}
|
||||||
|
|
||||||
|
## POST /api/v1/accounts/:id/mute
|
||||||
|
|
||||||
|
Mute an account.
|
||||||
|
|
||||||
|
Returns [Relationship]({{< relref "entities.md#relationship" >}})
|
||||||
|
|
||||||
|
### Resource information
|
||||||
|
|
||||||
|
{{< api_method_info auth="Yes" user="Yes" scope="write:mutes follow" version="0.0.0" >}}
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|Name|Description|Required|Default|
|
||||||
|
|----|-----------|:------:|:-----:|
|
||||||
|
| `notifications` | Whether the mute will mute notifications or not | Optional | true |
|
||||||
|
|
||||||
|
## POST /api/v1/accounts/:id/unmute
|
||||||
|
|
||||||
|
Unmute an account.
|
||||||
|
|
||||||
|
Returns [Relationship]({{< relref "entities.md#relationship" >}})
|
||||||
|
|
||||||
|
### Resource information
|
||||||
|
|
||||||
|
{{< api_method_info auth="Yes" user="Yes" scope="write:mutes follow" version="0.0.0" >}}
|
||||||
|
|
Loading…
Reference in New Issue