Skip to main content
PUT
Update screen capture settings for a Chat conversation

Authorizations

Authorization
string
header
required

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

FlowAuthorization Code
Authorization URL
https://api.x.com/2/oauth2/authorize
Token URL
https://api.x.com/2/oauth2/token
Scopes3
dm.write
Send and manage your Direct Messages.
users.read
View any account you can see, including protected accounts.
tweet.read
View all posts you can see, including those from protected accounts.

Path Parameters

id
string
required

The ID of the conversation: a group ID starting with g, the other user's ID for a 1:1 conversation, or both user IDs of a 1:1 conversation joined by a hyphen.

Pattern: ^([0-9]{1,19}|[0-9]{1,19}-[0-9]{1,19}|g[0-9]{1,19})$

Body

application/json

At least one of blocking, detection is required.

blocking
boolean
required

Whether participants are prevented from taking screenshots.

blocking_action_signatures
object[]

Cryptographic signatures for the screenshot blocking change.

detection
boolean

Whether participants are notified when someone takes a screenshot.

detection_action_signatures
object[]

Cryptographic signatures for the screenshot detection change.

Response

The request has succeeded.

data
object
errors
object[]