Saltar al contenido principal
PUT
/
2
/
lists
/
{id}
Actualizar Lista
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": [
    {
      "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.

Parámetros de ruta

id
string
requerido

El ID de la Lista que se desea actualizar. El identificador único de esta Lista.

Pattern: ^[0-9]{1,19}$
Ejemplo:

"1146654567674912769"

Cuerpo

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

Respuesta

La solicitud se completó correctamente.

data
object
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).