Skip to content

Commit 806cbd8

Browse files
committed
docs: simplify Enterprise plan callout language in blocks pages
1 parent bf0c7b2 commit 806cbd8

File tree

4 files changed

+5
-22
lines changed

4 files changed

+5
-22
lines changed

x-api/users/blocks/integrate.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Button } from '/snippets/button.mdx';
1010
This guide covers the key concepts you need to integrate the blocks endpoints into your application.
1111

1212
<Warning>
13-
**Enterprise plan required** — The block (`POST /2/users/:id/blocking`) and unblock (`DELETE /2/users/:source_user_id/blocking/:target_user_id`) endpoints are only available on the [Enterprise plan](/forms/enterprise-api-interest). The block lookup endpoint (`GET /2/users/:id/blocking`) is available on all plans, including pay-per-use.
13+
Blocking and unblocking users requires an [Enterprise plan](/forms/enterprise-api-interest). Looking up blocked users is available on all plans.
1414
</Warning>
1515

1616
---
@@ -174,7 +174,7 @@ console.log(`Blocked ${blocked.length} users`);
174174
|:-------|:------|:---------|
175175
| 400 | Invalid request | Check user ID format |
176176
| 401 | Unauthorized | Verify access token |
177-
| 403 | Forbidden | Check scopes, permissions, and plan access. Block/unblock endpoints require an [Enterprise plan](/forms/enterprise-api-interest) |
177+
| 403 | Forbidden | Check scopes and permissions. Block/unblock require [Enterprise](/forms/enterprise-api-interest) |
178178
| 404 | Not Found | User doesn't exist |
179179
| 429 | Too Many Requests | Wait and retry |
180180

x-api/users/blocks/introduction.mdx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Button } from '/snippets/button.mdx';
1010
The Blocks endpoints let you retrieve the list of users blocked by the authenticated user, as well as block and unblock users.
1111

1212
<Warning>
13-
**Enterprise plan required** — The block (`POST /2/users/:id/blocking`) and unblock (`DELETE /2/users/:source_user_id/blocking/:target_user_id`) endpoints are only available on the [Enterprise plan](/forms/enterprise-api-interest). The block lookup endpoint (`GET /2/users/:id/blocking`) is available on all plans, including pay-per-use.
13+
Blocking and unblocking users requires an [Enterprise plan](/forms/enterprise-api-interest). Looking up blocked users is available on all plans.
1414
</Warning>
1515

1616
## Overview
@@ -49,10 +49,6 @@ user.fields=username,description" \
4949

5050
## Example: Block a user (Enterprise only)
5151

52-
<Note>
53-
The following example requires an [Enterprise plan](/forms/enterprise-api-interest).
54-
</Note>
55-
5652
```bash
5753
curl -X POST "https://api.x.com/2/users/123456789/blocking" \
5854
-H "Authorization: Bearer $USER_ACCESS_TOKEN" \

x-api/users/blocks/migrate.mdx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ keywords: ["blocks migration", "blocks migrate", "v1.1 to v2 blocks", "blocks mi
77
import { Button } from '/snippets/button.mdx';
88

99
<Warning>
10-
**Enterprise plan required** — The block (`POST /2/users/:id/blocking`) and unblock (`DELETE /2/users/:source_user_id/blocking/:target_user_id`) endpoints are only available on the [Enterprise plan](/forms/enterprise-api-interest). The block lookup endpoint (`GET /2/users/:id/blocking`) covered in this migration guide is available on all plans, including pay-per-use.
10+
Blocking and unblocking users requires an [Enterprise plan](/forms/enterprise-api-interest). Looking up blocked users is available on all plans.
1111
</Warning>
1212

1313
### Blocks lookup: Standard v1.1 compared to X API v2
@@ -167,10 +167,6 @@ for await (const page of paginator) {
167167
168168
### Block a user (v2) — Enterprise only
169169
170-
<Note>
171-
The following example requires an [Enterprise plan](/forms/enterprise-api-interest).
172-
</Note>
173-
174170
<CodeGroup dropdown>
175171
176172
```bash cURL

x-api/users/blocks/quickstart.mdx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Button } from '/snippets/button.mdx';
1010
This guide walks you through retrieving your block list, as well as blocking and unblocking users.
1111

1212
<Warning>
13-
**Enterprise plan required** — The block and unblock endpoints covered in this quickstart are only available on the [Enterprise plan](/forms/enterprise-api-interest). The block lookup endpoint (`GET /2/users/:id/blocking`) is available on all plans, including pay-per-use.
13+
Blocking and unblocking users requires an [Enterprise plan](/forms/enterprise-api-interest). Looking up blocked users is available on all plans.
1414
</Warning>
1515

1616
<Note>
@@ -19,7 +19,6 @@ This guide walks you through retrieving your block list, as well as blocking and
1919
Before you begin, you'll need:
2020
- A [developer account](https://developer.x.com/en/portal/petition/essential/basic-info) with an approved App
2121
- User Access Token (OAuth 1.0a or OAuth 2.0 PKCE)
22-
- An [Enterprise plan](/forms/enterprise-api-interest) (required for block and unblock endpoints)
2322
</Note>
2423

2524
---
@@ -104,10 +103,6 @@ for await (const page of paginator) {
104103
105104
## Block a user (Enterprise only)
106105
107-
<Warning>
108-
This endpoint requires an [Enterprise plan](/forms/enterprise-api-interest). It is not available on pay-per-use.
109-
</Warning>
110-
111106
<Steps>
112107
<Step title="Identify the target user">
113108
Get the user ID of the account you want to block.
@@ -183,10 +178,6 @@ console.log(`Blocking: ${response.data?.blocking}`);
183178
184179
## Unblock a user (Enterprise only)
185180
186-
<Warning>
187-
This endpoint requires an [Enterprise plan](/forms/enterprise-api-interest). It is not available on pay-per-use.
188-
</Warning>
189-
190181
<Steps>
191182
<Step title="Send an unblock request">
192183

0 commit comments

Comments
 (0)