Saltar al contenido principal
POST
/
2
/
users
/
{id}
/
followed_lists
Seguir una lista
curl --request POST \
  --url https://api.x.com/2/users/{id}/followed_lists \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "list_id": "1146654567674912769"
}
'
{
  "data": {
    "following": 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 del usuario de origen autenticado que seguirá la Lista. Identificador único de este usuario. El valor debe ser el mismo que el del usuario autenticado.

Ejemplo:

"2244994945"

Cuerpo

application/json
list_id
string
requerido

El identificador único de esta Lista.

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

"1146654567674912769"

Respuesta

La solicitud se ha realizado 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).