Skip to content

Commit b179586

Browse files
committed
Update blocks docs: utilize badges in availability tables, custom green Callouts for enterprise restrictions, remove scopes Availability column
1 parent b44857f commit b179586

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

x-api/users/blocks/integrate.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import { Button } from '/snippets/button.mdx';
99

1010
This guide covers the key concepts you need to integrate the blocks endpoints into your application.
1111

12-
<Warning>
12+
<Callout icon="key" color="#22C55E" iconType="regular">
1313
The block and unblock users endpoints are only available under the Enterprise plan. You can fill out the Enterprise interest form [here](/forms/enterprise-api-interest).
14-
</Warning>
14+
</Callout>
1515

1616
---
1717

@@ -30,21 +30,21 @@ App-Only authentication is not supported. You must authenticate on behalf of a u
3030

3131
### Required scopes (OAuth 2.0)
3232

33-
| Scope | Required for | Availability |
34-
|:------|:-------------|:-------------|
35-
| `block.read` | Retrieving blocked accounts | Pay-per-use, Enterprise |
36-
| `block.write` | Blocking and unblocking accounts | Enterprise only |
37-
| `users.read` | Required with block scopes | Pay-per-use, Enterprise |
33+
| Scope | Required for |
34+
|:------|:-------------|
35+
| `block.read` | Retrieving blocked accounts |
36+
| `block.write` | Blocking and unblocking accounts |
37+
| `users.read` | Required with block scopes |
3838

3939
---
4040

4141
## Endpoints overview
4242

4343
| Method | Endpoint | Description | Availability |
4444
|:-------|:---------|:------------|:-------------|
45-
| GET | `/2/users/:id/blocking` | Get list of blocked accounts | Pay-per-use, Enterprise |
46-
| POST | `/2/users/:id/blocking` | Block an account | Enterprise only |
47-
| DELETE | `/2/users/:source_user_id/blocking/:target_user_id` | Unblock an account | Enterprise only |
45+
| GET | `/2/users/:id/blocking` | Get list of blocked accounts | <div className="flex items-center gap-1 flex-nowrap whitespace-nowrap"><Badge color="blue" size="xs">Pay-per-use</Badge><Badge color="green" size="xs">Enterprise</Badge></div> |
46+
| POST | `/2/users/:id/blocking` | Block an account | <Badge color="green" size="xs">Enterprise</Badge> |
47+
| DELETE | `/2/users/:source_user_id/blocking/:target_user_id` | Unblock an account | <Badge color="green" size="xs">Enterprise</Badge> |
4848

4949
---
5050

x-api/users/blocks/introduction.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ import { Button } from '/snippets/button.mdx';
99

1010
The Blocks endpoints let you retrieve the list of users blocked by the authenticated user, as well as block and unblock users.
1111

12-
<Warning>
12+
<Callout icon="key" color="#22C55E" iconType="regular">
1313
The block and unblock users endpoints are only available under the Enterprise plan. You can fill out the Enterprise interest form [here](/forms/enterprise-api-interest).
14-
</Warning>
14+
</Callout>
1515

1616
## Overview
1717

1818
<CardGroup cols={2}>
1919
<Card title="Blocked users" icon="list">
2020
Get your blocked user list
2121
</Card>
22-
<Card title="Block (Enterprise)" icon="ban">
23-
Block a user — requires Enterprise plan
22+
<Card title="Block" icon="ban">
23+
Block a user
2424
</Card>
25-
<Card title="Unblock (Enterprise)" icon="circle-check">
26-
Unblock a user — requires Enterprise plan
25+
<Card title="Unblock" icon="circle-check">
26+
Unblock a user
2727
</Card>
2828
</CardGroup>
2929

@@ -33,9 +33,9 @@ The block and unblock users endpoints are only available under the Enterprise pl
3333

3434
| Method | Endpoint | Description | Availability |
3535
|:-------|:---------|:------------|:-------------|
36-
| GET | [`/2/users/:id/blocking`](/x-api/users/get-blocking) | Get blocked users | Pay-per-use, Enterprise |
37-
| POST | `/2/users/:id/blocking` | Block a user | Enterprise only |
38-
| DELETE | `/2/users/:source_user_id/blocking/:target_user_id` | Unblock a user | Enterprise only |
36+
| GET | [`/2/users/:id/blocking`](/x-api/users/get-blocking) | Get blocked users | <div className="flex items-center gap-1 flex-nowrap whitespace-nowrap"><Badge color="blue" size="xs">Pay-per-use</Badge><Badge color="green" size="xs">Enterprise</Badge></div> |
37+
| POST | `/2/users/:id/blocking` | Block a user | <Badge color="green" size="xs">Enterprise</Badge> |
38+
| DELETE | `/2/users/:source_user_id/blocking/:target_user_id` | Unblock a user | <Badge color="green" size="xs">Enterprise</Badge> |
3939

4040
---
4141

x-api/users/blocks/migrate.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ keywords: ["blocks migration", "blocks migrate", "v1.1 to v2 blocks", "blocks mi
66

77
import { Button } from '/snippets/button.mdx';
88

9-
<Warning>
9+
<Callout icon="key" color="#22C55E" iconType="regular">
1010
The block and unblock users endpoints are only available under the Enterprise plan. You can fill out the Enterprise interest form [here](/forms/enterprise-api-interest).
11-
</Warning>
11+
</Callout>
1212

1313
### Blocks lookup: Standard v1.1 compared to X API v2
1414

x-api/users/blocks/quickstart.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import { Button } from '/snippets/button.mdx';
99

1010
This guide walks you through retrieving your block list, as well as blocking and unblocking users.
1111

12-
<Warning>
12+
<Callout icon="key" color="#22C55E" iconType="regular">
1313
The block and unblock users endpoints are only available under the Enterprise plan. You can fill out the Enterprise interest form [here](/forms/enterprise-api-interest).
14-
</Warning>
14+
</Callout>
1515

1616
<Note>
1717
**Prerequisites**

0 commit comments

Comments
 (0)