budibase/packages/client/src/api/automations.js

11 lines
266 B
JavaScript
Raw Normal View History

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 },
})
}