fc1f257793
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
14 lines
305 B
JavaScript
14 lines
305 B
JavaScript
/* global axios */
|
|
import ApiClient from './ApiClient';
|
|
|
|
class AutomationsAPI extends ApiClient {
|
|
constructor() {
|
|
super('automation_rules', { accountScoped: true });
|
|
}
|
|
|
|
clone(automationId) {
|
|
return axios.post(`${this.url}/${automationId}/clone`);
|
|
}
|
|
}
|
|
|
|
export default new AutomationsAPI();
|