# \EmailTriggerApi

All URIs are relative to */api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**create_email_trigger**](EmailTriggerApi.md#create_email_trigger) | **POST** /w/{workspace}/email_triggers/create | create email trigger
[**delete_email_trigger**](EmailTriggerApi.md#delete_email_trigger) | **DELETE** /w/{workspace}/email_triggers/delete/{path} | delete email trigger
[**exists_email_local_part**](EmailTriggerApi.md#exists_email_local_part) | **POST** /w/{workspace}/email_triggers/local_part_exists | does email local part exists
[**exists_email_trigger**](EmailTriggerApi.md#exists_email_trigger) | **GET** /w/{workspace}/email_triggers/exists/{path} | does email trigger exists
[**get_email_trigger**](EmailTriggerApi.md#get_email_trigger) | **GET** /w/{workspace}/email_triggers/get/{path} | get email trigger
[**list_email_triggers**](EmailTriggerApi.md#list_email_triggers) | **GET** /w/{workspace}/email_triggers/list | list email triggers
[**set_email_trigger_mode**](EmailTriggerApi.md#set_email_trigger_mode) | **POST** /w/{workspace}/email_triggers/setmode/{path} | enable/disable email trigger
[**update_email_trigger**](EmailTriggerApi.md#update_email_trigger) | **POST** /w/{workspace}/email_triggers/update/{path} | update email trigger



## create_email_trigger

> String create_email_trigger(workspace, new_email_trigger)
create email trigger

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**new_email_trigger** | [**NewEmailTrigger**](NewEmailTrigger.md) | new email trigger | [required] |

### Return type

**String**

### Authorization

[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: text/plain

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## delete_email_trigger

> String delete_email_trigger(workspace, path)
delete email trigger

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**path** | **String** |  | [required] |

### Return type

**String**

### Authorization

[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: text/plain

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## exists_email_local_part

> bool exists_email_local_part(workspace, exists_email_local_part_request)
does email local part exists

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**exists_email_local_part_request** | [**ExistsEmailLocalPartRequest**](ExistsEmailLocalPartRequest.md) | email local part exists request | [required] |

### Return type

**bool**

### Authorization

[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## exists_email_trigger

> bool exists_email_trigger(workspace, path)
does email trigger exists

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**path** | **String** |  | [required] |

### Return type

**bool**

### Authorization

[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_email_trigger

> models::EmailTrigger get_email_trigger(workspace, path)
get email trigger

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**path** | **String** |  | [required] |

### Return type

[**models::EmailTrigger**](EmailTrigger.md)

### Authorization

[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_email_triggers

> Vec<models::EmailTrigger> list_email_triggers(workspace, page, per_page, path, is_flow, path_start, label)
list email triggers

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**page** | Option<**i32**> | which page to return (start at 1, default 1) |  |
**per_page** | Option<**i32**> | number of items to return for a given page (default 30, max 100) |  |
**path** | Option<**String**> | filter by path |  |
**is_flow** | Option<**bool**> |  |  |
**path_start** | Option<**String**> |  |  |
**label** | Option<**String**> | Filter by label |  |

### Return type

[**Vec<models::EmailTrigger>**](EmailTrigger.md)

### Authorization

[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## set_email_trigger_mode

> String set_email_trigger_mode(workspace, path, set_http_trigger_mode_request)
enable/disable email trigger

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**path** | **String** |  | [required] |
**set_http_trigger_mode_request** | [**SetHttpTriggerModeRequest**](SetHttpTriggerModeRequest.md) |  | [required] |

### Return type

**String**

### Authorization

[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: text/plain

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## update_email_trigger

> String update_email_trigger(workspace, path, edit_email_trigger)
update email trigger

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**path** | **String** |  | [required] |
**edit_email_trigger** | [**EditEmailTrigger**](EditEmailTrigger.md) | updated trigger | [required] |

### Return type

**String**

### Authorization

[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: text/plain

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

