Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
2.1 kB · 67 lines
JSON
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ "lexicon": 1, "id": "place.stream.moderation.createPin", "defs": { "main": { "type": "procedure", "description": "Pin a chat message on behalf of a streamer. Requires 'message.pin' permission. Creates a place.stream.chat.pinnedRecord in the streamer's repo, replacing any existing pin.", "input": { "encoding": "application/json", "schema": { "type": "object", "required": ["streamer", "messageUri"], "properties": { "streamer": { "type": "string", "format": "did", "description": "The DID of the streamer." }, "messageUri": { "type": "string", "format": "at-uri", "description": "The AT-URI of the chat message to pin." }, "expiresAt": { "type": "string", "format": "datetime", "description": "Optional expiration time for this pin." } } } }, "output": { "encoding": "application/json", "schema": { "type": "object", "required": ["uri", "cid"], "properties": { "uri": { "type": "string", "format": "at-uri", "description": "The AT-URI of the created pinned record." }, "cid": { "type": "string", "format": "cid", "description": "The CID of the created pinned record." } } } }, "errors": [ { "name": "Unauthorized", "description": "The request lacks valid authentication credentials." }, { "name": "Forbidden", "description": "The caller does not have permission to pin messages for this streamer." }, { "name": "SessionNotFound", "description": "The streamer's OAuth session could not be found or is invalid." } ] } }}