Create a new realtime trigger using XanoScript
Create a new realtime trigger using XanoScript
Authentication: required
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
The body is of type string.
"realtime_trigger foo {\n channel = \"my_channel\"\n input {\n enum action {\n values = [\"message\", \"join\"]\n }\n text channel\n object client {\n schema {\n json extras\n object permissions {\n schema {\n int dbo_id\n text row_id\n }\n }\n }\n }\n object options {\n schema {\n bool authenticated\n text channel\n }\n }\n json payload\n }\n stack {\n var $x1 {\n value = 123\n }\n }\n actions = {connection: true}\n}\n"
Response
Success!