Skip to main content
PUT
/
2
/
lists
/
{id}
Update List
curl --request PUT \
  --url https://api.x.com/2/lists/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "<string>",
  "name": "<string>",
  "private": true
}'
{
  "data": {
    "updated": true
  },
  "errors": [
    {
      "detail": "<string>",
      "status": 123,
      "title": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Path Parameters

id
string
required
Example:

Body

application/json
description
string
Maximum length: 100
name
string
Required string length: 1 - 25
private
boolean

Response

data
object
errors
object[]
Minimum length: 1