curl --request POST \
--url https://api.x.com/2/lists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"description": "<string>",
"name": "<string>",
"private": false
}'
{
"data": {
"id": "1146654567674912769",
"name": "<string>"
},
"errors": [
{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}
]
}
Creates a new List for the authenticated user.
curl --request POST \
--url https://api.x.com/2/lists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"description": "<string>",
"name": "<string>",
"private": false
}'
{
"data": {
"id": "1146654567674912769",
"name": "<string>"
},
"errors": [
{
"detail": "<string>",
"status": 123,
"title": "<string>",
"type": "<string>"
}
]
}
The access token received from the authorization server in the OAuth 2.0 flow.
The request has succeeded.
The response is of type object
.