10 lines
266 B
JavaScript
10 lines
266 B
JavaScript
import API from "./api"
|
|
/**
|
|
* Executes an automation. Must have "App Action" trigger.
|
|
*/
|
|
export const triggerAutomation = async (automationId, fields) => {
|
|
return await API.post({
|
|
url: `/api/automations/${automationId}/trigger`,
|
|
body: { fields },
|
|
})
|
|
}
|