Skip to main content
POST
/
2
/
users
/
{id}
/
bookmarks
Crear marcador
curl --request POST \
  --url https://api.x.com/2/users/{id}/bookmarks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tweet_id": "1346889436626259968"
}
'
{
  "data": {
    "bookmarked": true
  },
  "errors": [
    {
      "title": "<string>",
      "type": "<string>",
      "detail": "<string>",
      "status": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

El identificador (id) del usuario de origen autenticado para el que se deben añadir Marcadores. Identificador único de este usuario. El valor debe ser el mismo que el del usuario autenticado.

Example:

"2244994945"

Body

application/json
tweet_id
string
required

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}$
Example:

"1346889436626259968"

Response

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