POST /2/users/:id/pinned_lists
POST /2/users/:id/pinned_lists
Enables the authenticated user to pin a List.
Endpoint URL
https://api.x.com/2/users/:id/pinned_lists
Authentication and rate limits
Authentication methods supported by this endpoint | OAuth 1.0a is also available for this endpoint. |
---|---|
Rate limit | User rate limit (User context): 50 requests per 15-minute window per each authenticated user |
OAuth 2.0 scopes required by this endpoint
|
Learn more about OAuth 2.0 Authorization Code with PKCE |
Path parameters
Name | Type | Description |
---|---|---|
id Required | string | The user ID who you are pinning a List on behalf of. It must match your own user ID or that of an authenticating user, meaning that you must pass the Access Tokens associated with the user ID when authenticating your request. |
JSON body parameters
Name | Type | Description |
---|---|---|
list_id Required | string | The ID of the List that you would like the user id to pin. |
Example code with offical SDKs
TypeScript
Java
Example responses
Successful response
Response fields
Name | Type | Description |
---|---|---|
pinned | boolean | Indicates whether the user pinned the specified List as a result of the request. |