2018-09-26 00:19:54 +02:00
|
|
|
---
|
2018-10-05 02:35:29 +02:00
|
|
|
title: Blocks
|
2018-09-26 00:19:54 +02:00
|
|
|
menu:
|
|
|
|
docs:
|
2018-10-05 02:35:29 +02:00
|
|
|
parent: rest-api
|
2018-09-26 00:19:54 +02:00
|
|
|
weight: 10
|
|
|
|
---
|
2018-10-05 01:12:00 +02:00
|
|
|
|
|
|
|
## GET /api/v1/blocks
|
|
|
|
|
2018-10-05 01:37:50 +02:00
|
|
|
Accounts the user has blocked.
|
|
|
|
|
2018-10-05 01:12:00 +02:00
|
|
|
Returns array of [Account]({{< relref "entities.md#account" >}})
|
|
|
|
|
|
|
|
### Resource information
|
|
|
|
|
2018-10-06 00:10:53 +02:00
|
|
|
{{< api_method_info auth="Yes" user="Yes" scope="read:blocks follow" version="0.0.0" >}}
|
2018-10-05 01:12:00 +02:00
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
|Name|Description|Required|Default|
|
|
|
|
|----|-----------|:------:|:-----:|
|
|
|
|
| `limit` | Maximum number of results | Optional | 40 |
|
|
|
|
|
|
|
|
### Pagination
|
|
|
|
|
|
|
|
{{< api_pagination >}}
|
2018-10-06 00:10:53 +02:00
|
|
|
|
|
|
|
## 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" >}}
|