PUT /2/lists/:id
PUT /2/lists/:id
Enables the authenticated user to update the meta data of a specified List that they own.
Endpoint URL
https://api.x.com/2/lists/:id
Authentication and rate limits
Authentication methods supported by this endpoint | OAuth 2.0 Authorization Code with PKCE OAuth 1.0a is also available for this endpoint. |
---|---|
Rate limit | User rate limit (User context): 300 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 ID of the List to be updated. |
JSON body parameters
Name | Type | Description |
---|---|---|
description Optional | string | Updates the description of the List. |
name Optional | string | Updates the name of the List. |
private Optional | boolean | Determines whether the List should be private. |
Example code with offical SDKs
TypeScript
Java
Example responses
Successful response
Response fields
Name | Type | Description |
---|---|---|
updated | boolean | Indicates whether the List specified in the request has been updated. |