Hide replies v2

API reference contents

PUT /labs/2/tweets/:id/hidden

Hides or unhides a reply to a Tweet.



Endpoint URL

https://api.twitter.com/labs/2/tweets/:id/hidden

Authentication and rate limits

Authentication methods
supported by this endpoint

OAuth 1.0a User context

Rate limit 10 requests per 15-minute window

Learn more about rate limits.



Path parameters

Name Type Description
id
 Required 
string Unique identifier of the Tweet to hide or unhide. The Tweet must belong to a conversation initiated by the authenticating user.



JSON body parameters

Name Type Description
hidden
 Required 
boolean Indicates the action to perform. Specify true to hide a reply or false to unhide.



Examples

  • cURL (hide reply)
  • twurl (hide reply)
  • cURL (unhide reply)
  • twurl (unhide reply)
curl -XPUT 'https://api.twitter.com/labs/2/tweets/:id/hidden' \
-H "Authorization: OAuth $USER_CONTEXT_SIGNATURE" \
-H "Content-type: application/json" \
-d '{"hidden": true}'
twurl -XPUT '/labs/2/tweets/:id/hidden' \
-A "Content-Type: application/json" \
-d '{"hidden": true}'
curl -XPUT 'https://api.twitter.com/labs/2/tweets/:id/hidden' \
-H "Authorization: OAuth $USER_CONTEXT_SIGNATURE" \
-H "Content-type: application/json" \
-d '{"hidden": false}'
twurl -XPUT '/labs/2/tweets/:id/hidden' \
-A "Content-Type: application/json" \
-d '{"hidden": false}'

Response

  • Success (reply hidden)
  • Success (reply unhidden)
{"data":{"hidden":true}}
{"data":{"hidden":false}}

Response fields

Name Type Description
hidden boolean Indicates if the Tweet was successfully hidden or unhidden.