# egoisdk.AutomationsApi All URIs are relative to *https://api.egoiapp.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**deleteAutomation**](AutomationsApi.md#deleteAutomation) | **DELETE** /automations/{automation_id} | Remove automation [**getAllActions**](AutomationsApi.md#getAllActions) | **GET** /automations/{automation_id}/actions | Get all actions from given automation [**getAllAutomations**](AutomationsApi.md#getAllAutomations) | **GET** /automations | Get all automations ## deleteAutomation > deleteAutomation(automationId) Remove automation Remove automation information given its ID ### Example ```javascript import egoisdk from 'egoisdk'; let defaultClient = egoisdk.ApiClient.instance; // Configure API key authorization: Apikey let Apikey = defaultClient.authentications['Apikey']; Apikey.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //Apikey.apiKeyPrefix = 'Token'; let apiInstance = new egoisdk.AutomationsApi(); let automationId = 56; // Number | ID of the Automation apiInstance.deleteAutomation(automationId, (error, data, response) => { if (error) { console.error(error); } else { console.log('API called successfully.'); } }); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **automationId** | **Number**| ID of the Automation | ### Return type null (empty response body) ### Authorization [Apikey](../README.md#Apikey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## getAllActions > AutomationActionsCollection getAllActions(opts) Get all actions from given automation Returns all actions ### Example ```javascript import egoisdk from 'egoisdk'; let defaultClient = egoisdk.ApiClient.instance; // Configure API key authorization: Apikey let Apikey = defaultClient.authentications['Apikey']; Apikey.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //Apikey.apiKeyPrefix = 'Token'; let apiInstance = new egoisdk.AutomationsApi(); let opts = { 'automationId': 56, // Number | Reference attribute to automation id 'offset': 56, // Number | Element offset (starting at zero for the first element) 'limit': 10 // Number | Number of items to return }; apiInstance.getAllActions(opts, (error, data, response) => { if (error) { console.error(error); } else { console.log('API called successfully. Returned data: ' + data); } }); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **automationId** | **Number**| Reference attribute to automation id | [optional] **offset** | **Number**| Element offset (starting at zero for the first element) | [optional] **limit** | **Number**| Number of items to return | [optional] [default to 10] ### Return type [**AutomationActionsCollection**](AutomationActionsCollection.md) ### Authorization [Apikey](../README.md#Apikey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## getAllAutomations > AutomationCollection getAllAutomations(opts) Get all automations Returns all automations ### Example ```javascript import egoisdk from 'egoisdk'; let defaultClient = egoisdk.ApiClient.instance; // Configure API key authorization: Apikey let Apikey = defaultClient.authentications['Apikey']; Apikey.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //Apikey.apiKeyPrefix = 'Token'; let apiInstance = new egoisdk.AutomationsApi(); let opts = { 'automationId': 56, // Number | Reference attribute to automation id 'title': "title_example", // String | Reference attribute to title 'createdBy': 56, // Number | Reference attribute to created by 'listId': 56, // Number | ID of the list that owns the automation 'status': "status_example", // String | Automation status 'offset': 56, // Number | Element offset (starting at zero for the first element) 'limit': 10, // Number | Number of items to return 'order': "'desc'", // String | Type of order 'orderBy': "'automation_id'" // String | Reference attribute to order automations }; apiInstance.getAllAutomations(opts, (error, data, response) => { if (error) { console.error(error); } else { console.log('API called successfully. Returned data: ' + data); } }); ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **automationId** | **Number**| Reference attribute to automation id | [optional] **title** | **String**| Reference attribute to title | [optional] **createdBy** | **Number**| Reference attribute to created by | [optional] **listId** | **Number**| ID of the list that owns the automation | [optional] **status** | **String**| Automation status | [optional] **offset** | **Number**| Element offset (starting at zero for the first element) | [optional] **limit** | **Number**| Number of items to return | [optional] [default to 10] **order** | **String**| Type of order | [optional] [default to 'desc'] **orderBy** | **String**| Reference attribute to order automations | [optional] [default to 'automation_id'] ### Return type [**AutomationCollection**](AutomationCollection.md) ### Authorization [Apikey](../README.md#Apikey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json