Saltar al contenido principal
POST
/
2
/
lists
Crear Lista
curl --request POST \
  --url https://api.x.com/2/lists \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "private": false
}
'
{
  "errors": [
    {
      "title": "<string>",
      "type": "<string>",
      "detail": "<string>",
      "status": 123
    }
  ]
}

Autorizaciones

Authorization
string
header
requerido

The access token received from the authorization server in the OAuth 2.0 flow.

Cuerpo

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

Respuesta

La solicitud se ha completado correctamente.

data
object

Una Lista de X es un grupo de cuentas seleccionadas.

errors
object[]
Minimum array length: 1

Un objeto HTTP Problem Details, tal como se define en el IETF RFC 7807 (https://tools.ietf.org/html/rfc7807).