# \MqttTriggerApi

All URIs are relative to */api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**create_mqtt_trigger**](MqttTriggerApi.md#create_mqtt_trigger) | **POST** /w/{workspace}/mqtt_triggers/create | create mqtt trigger
[**delete_mqtt_trigger**](MqttTriggerApi.md#delete_mqtt_trigger) | **DELETE** /w/{workspace}/mqtt_triggers/delete/{path} | delete mqtt trigger
[**exists_mqtt_trigger**](MqttTriggerApi.md#exists_mqtt_trigger) | **GET** /w/{workspace}/mqtt_triggers/exists/{path} | does mqtt trigger exists
[**get_mqtt_trigger**](MqttTriggerApi.md#get_mqtt_trigger) | **GET** /w/{workspace}/mqtt_triggers/get/{path} | get mqtt trigger
[**list_mqtt_triggers**](MqttTriggerApi.md#list_mqtt_triggers) | **GET** /w/{workspace}/mqtt_triggers/list | list mqtt triggers
[**set_mqtt_trigger_mode**](MqttTriggerApi.md#set_mqtt_trigger_mode) | **POST** /w/{workspace}/mqtt_triggers/setmode/{path} | set enabled mqtt trigger
[**test_mqtt_connection**](MqttTriggerApi.md#test_mqtt_connection) | **POST** /w/{workspace}/mqtt_triggers/test | test mqtt connection
[**update_mqtt_trigger**](MqttTriggerApi.md#update_mqtt_trigger) | **POST** /w/{workspace}/mqtt_triggers/update/{path} | update mqtt trigger



## create_mqtt_trigger

> String create_mqtt_trigger(workspace, new_mqtt_trigger)
create mqtt trigger

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**new_mqtt_trigger** | [**NewMqttTrigger**](NewMqttTrigger.md) | new mqtt 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_mqtt_trigger

> String delete_mqtt_trigger(workspace, path)
delete mqtt 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_mqtt_trigger

> bool exists_mqtt_trigger(workspace, path)
does mqtt 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_mqtt_trigger

> models::MqttTrigger get_mqtt_trigger(workspace, path)
get mqtt trigger

### Parameters


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

### Return type

[**models::MqttTrigger**](MqttTrigger.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_mqtt_triggers

> Vec<models::MqttTrigger> list_mqtt_triggers(workspace, page, per_page, path, is_flow, path_start, label)
list mqtt 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::MqttTrigger>**](MqttTrigger.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_mqtt_trigger_mode

> String set_mqtt_trigger_mode(workspace, path, set_http_trigger_mode_request)
set enabled mqtt trigger

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**path** | **String** |  | [required] |
**set_http_trigger_mode_request** | [**SetHttpTriggerModeRequest**](SetHttpTriggerModeRequest.md) | updated mqtt trigger enable | [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)


## test_mqtt_connection

> String test_mqtt_connection(workspace, test_kafka_connection_request)
test mqtt connection

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**test_kafka_connection_request** | [**TestKafkaConnectionRequest**](TestKafkaConnectionRequest.md) | test mqtt connection | [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_mqtt_trigger

> String update_mqtt_trigger(workspace, path, edit_mqtt_trigger)
update mqtt trigger

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**path** | **String** |  | [required] |
**edit_mqtt_trigger** | [**EditMqttTrigger**](EditMqttTrigger.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)

