Update table trigger using XanoScript
Update table trigger using XanoScript
Authentication: required
PUT
Update table trigger using XanoScript
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
text/x-xanoscript
The body is of type string.
Example:
"table_trigger foo {\n table = \"user\"\n input {\n json new\n json old\n enum action {\n values = [\"insert\", \"update\", \"delete\", \"truncate\"]\n }\n text datasource\n }\n stack {\n var $x1 {\n value = $input.score + 1\n }\n }\n actions = {insert: true, update: true}\n}\n"
Response
Success!
Update table trigger using XanoScript