Hide replies

PUT /2/tweets/{id}/hidden

Hides or unhides a reply to an owned conversation.

Path parameters

  • id string Required

    The ID of the reply that you want to hide or unhide.

Body

  • hidden boolean

Responses

  • default

    The request has failed.

    Hide response attributes Show response attributes object
    • code integer(int32) Required
    • message string Required
  • 200

    A successful response. The reply has been hidden or unhidden.

    Hide response attribute Show response attribute object
    • data object
      Hide data attribute Show data attribute object
      • hidden boolean
PUT /2/tweets/{id}/hidden
curl \
 -X PUT https://api.twitter.com/2/tweets/1346889436626259968/hidden \
 -H "Authorization: Oauth $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"hidden":true}'
Request example
{
  "hidden": true
}
Request examples
{
  "hidden": true
}
Response examples (default)
{
  "code": 42,
  "message": "string"
}
Response examples (default)
{
  "code": 42,
  "message": "string"
}
Response examples (200)
{
  "data": {
    "hidden": true
  }
}
Response examples (200)
{
  "data": {
    "hidden": true
  }
}