Saltar al contenido principal
POST
/
2
/
users
/
{id}
/
retweets
Republicar publicación
curl --request POST \
  --url https://api.x.com/2/users/{id}/retweets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tweet_id": "1346889436626259968"
}
'
{
  "data": {
    "id": "1346889436626259968",
    "retweeted": 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 solicita volver a publicar la Publicación. Identificador único de este usuario. El valor debe ser el mismo que el del usuario autenticado.

Ejemplo:

"2244994945"

Cuerpo

application/json
tweet_id
string
requerido

Identificador único de este Tweet. Se devuelve como cadena para evitar complicaciones con lenguajes y herramientas que no pueden manejar enteros de gran tamaño.

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

"1346889436626259968"

Respuesta

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