Hide replies v2

API reference contents

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

Hides 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 limit10 requests per 15-minute window

Learn more about rate limits.



Path parameters

NameTypeDescription
id
 Required 
stringUnique identifier of the Tweet to hide. The Tweet must belong to a conversation initiated by the authenticating user.


JSON body parameters

NameTypeDescription
hidden
 Required 
booleanIndicates this reply needs to be hidden. The only value allowed is true.


Examples

  • cURL
  • twurl
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}'

Response

  • Success
{"data":{"hidden":true}}

Response fields

NameTypeDescription
hiddenbooleanIndicates if the Tweet was successfully hidden.