{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/flows/triggers/:trigger_name","auth":"optional","method":"post","params":[{"name":"trigger_name","type":"string","default":"","desc":"","required":false,"in":"path","ref":"","_id":"573f3b5cdbf53019002fac06"}],"results":{"codes":[{"status":204,"language":"json","code":"{\n \"triggered\":true\n}","name":""}]},"settings":"573f36307eeb8b190094cab0","examples":{"codes":[{"language":"curl","code":"# With no data\ncurl -X POST \\\n https://triggers.octoblu.com/flows/triggers/DoIt\n\n# With form-urlencoded data\ncurl -X POST \\\n -d foo=bar \\\n https://triggers.octoblu.com/flows/triggers/DoIt\n\n# With JSON data\ncurl -X POST \\\n -H 'content-type: application/json' \\\n -d '{\"foo\": \"bar\"}' \\\n https://triggers.octoblu.com/flows/triggers/DoIt\n\n# With custom authentication\nUUID=fd205f32-7846-4057-911b-3d580747b6c9\nTOKEN=9f63aaa056618ee5c79197660c4de874718e41da\n\ncurl -X POST \\\n https://${UUID}:${TOKEN}:::at:::triggers.octoblu.com/flows/triggers/DoIt\n"},{"name":"PowerShell","language":"text","code":"# With no data\nInvoke-RestMethod `\n -URI \"https://triggers.octoblu.com/flows/triggers/DoIt\" `\n -Method Post\n\n# With form-urlencoded data\nInvoke-RestMethod `\n -URI \"https://triggers.octoblu.com/flows/triggers/DoIt\" `\n -Method Post `\n -Body @{'foo'='bar'}\n\n# With JSON data\nInvoke-RestMethod `\n -URI \"https://triggers.octoblu.com/flows/triggers/DoIt\" `\n -ContentType \"application/json\" `\n -Method Post `\n -Body '{\"foo\":\"bar\"}'\n\n# With custom authentication\n$meAuth = @{meshblu_auth_uuid='fd205f32-7846-4057-911b-3d580747b6c9'; meshblu_auth_token='9f63aaa056618ee5c79197660c4de874718e41da'}\n\nInvoke-RestMethod `\n -URI \"https://triggers.octoblu.com/flows/triggers/DoIt\" `\n -Headers $meAuth `\n -Method Post\n"}]}},"next":{"description":"","pages":[]},"title":"Trigger by Name","type":"endpoint","slug":"trigger-by-name","excerpt":"Activate a trigger in a flow by name","body":"This causes the trigger service to send a Meshblu message to the flow to tell it to trigger. If no authentication information is passed, it will send the message as the identity of the Trigger Service.\n\nAdditionally, any POST data sent will be made available to the flow\n[block:callout]\n{\n \"type\": \"warning\",\n \"body\": \"In order to activate the trigger, the trigger service's UUID must be in the flow's `message.from` whitelist. Generally, the [Octoblu](https://octoblu.com) Designer will manage the Whitelist for the user. See the [Meshblu whitelist documentation](https://meshblu.readme.io/docs/whitelists-2-0) for more information.\",\n \"title\": \"Check the Permissions\"\n}\n[/block]","updates":[],"order":5,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"573f3f6c87cbd20e00208e77","editedParams":true,"editedParams2":true,"user":"5564f227f0f70f0d00a9ab20","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Flow Triggers","slug":"flow-triggers","order":4,"from_sync":false,"reference":false,"_id":"573f3f6c87cbd20e00208e49","version":"573f3f6c87cbd20e00208e42","__v":0,"createdAt":"2016-05-20T16:02:55.724Z","project":"573f3f6c87cbd20e00208e41"},"project":"573f3f6c87cbd20e00208e41","version":{"version":"1.0","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["573f3f6c87cbd20e00208e44","573f3f6c87cbd20e00208e43","573f3f6c87cbd20e00208e45","573f3f6c87cbd20e00208e46","573f3f6c87cbd20e00208e47","573f3f6c87cbd20e00208e48","573f3f6c87cbd20e00208e49","573f3f6c87cbd20e00208e4a","573f3f6c87cbd20e00208e4b","579a382265f89a170099946f","57bce03036eff81700666963"],"_id":"573f3f6c87cbd20e00208e42","createdAt":"2016-05-18T20:59:16.635Z","releaseDate":"2016-05-18T20:59:16.635Z","__v":2,"project":"573f3f6c87cbd20e00208e41"},"parentDoc":null,"createdAt":"2016-05-20T16:30:47.839Z","githubsync":"","__v":0}
postTrigger by Name
Activate a trigger in a flow by name
Definition
{{ api_url }}{{ page_api_url }}
Parameters
Path Params
trigger_name:
string