Create a gate (hide VOD comment) on behalf of a streamer. Requires 'vod.comment.hide' permission. Creates a place.stream.vod.gate record in the streamer's repository.
POST
/xrpc/place.stream.moderation.createVodGate
const url = 'https://example.com/xrpc/place.stream.moderation.createVodGate';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"streamer":"example","commentUri":"https://example.com"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/xrpc/place.stream.moderation.createVodGate \ --header 'Content-Type: application/json' \ --data '{ "streamer": "example", "commentUri": "https://example.com" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
streamer
required
The DID of the streamer.
string format: did
commentUri
required
The AT-URI of the VOD comment to hide.
string format: uri
Example generated
{ "streamer": "example", "commentUri": "https://example.com"}Responses
Section titled “Responses”Success
Media typeapplication/json
object
uri
required
The AT-URI of the created gate record.
string format: uri
cid
required
The CID of the created gate record.
string format: cid
Example generated
{ "uri": "https://example.com", "cid": "example"}Bad Request
