Create a new workspace trigger using XanoScript
Create a new workspace 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.
"workspace_trigger foo {\n input {\n object to_branch? {\n schema {\n int id?\n text label? filters=trim\n }\n }\n object from_branch? {\n schema {\n int id?\n text label? filters=trim\n }\n }\n enum action {\n values = [\"branch_live\", \"branch_merge\", \"branch_new\"]\n }\n }\n stack {\n var $x1 {\n value = $input.score + 1\n }\n }\n actions = {branch_live: true, branch_merge: true, branch_new: true}\n}\n"
Response
Success!