# \PostgresTriggerApi
All URIs are relative to */api*
[**create_postgres_publication**](PostgresTriggerApi.md#create_postgres_publication) | **POST** /w/{workspace}/postgres_triggers/publication/create/{publication}/{path} | create publication for postgres
[**create_postgres_replication_slot**](PostgresTriggerApi.md#create_postgres_replication_slot) | **POST** /w/{workspace}/postgres_triggers/slot/create/{path} | create replication slot for postgres
[**create_postgres_trigger**](PostgresTriggerApi.md#create_postgres_trigger) | **POST** /w/{workspace}/postgres_triggers/create | create postgres trigger
[**create_template_script**](PostgresTriggerApi.md#create_template_script) | **POST** /w/{workspace}/postgres_triggers/create_template_script | create template script
[**delete_postgres_publication**](PostgresTriggerApi.md#delete_postgres_publication) | **DELETE** /w/{workspace}/postgres_triggers/publication/delete/{publication}/{path} | delete postgres publication
[**delete_postgres_replication_slot**](PostgresTriggerApi.md#delete_postgres_replication_slot) | **DELETE** /w/{workspace}/postgres_triggers/slot/delete/{path} | delete postgres replication slot
[**delete_postgres_trigger**](PostgresTriggerApi.md#delete_postgres_trigger) | **DELETE** /w/{workspace}/postgres_triggers/delete/{path} | delete postgres trigger
[**exists_postgres_trigger**](PostgresTriggerApi.md#exists_postgres_trigger) | **GET** /w/{workspace}/postgres_triggers/exists/{path} | does postgres trigger exists
[**get_postgres_publication**](PostgresTriggerApi.md#get_postgres_publication) | **GET** /w/{workspace}/postgres_triggers/publication/get/{publication}/{path} | get postgres publication
[**get_postgres_trigger**](PostgresTriggerApi.md#get_postgres_trigger) | **GET** /w/{workspace}/postgres_triggers/get/{path} | get postgres trigger
[**get_postgres_version**](PostgresTriggerApi.md#get_postgres_version) | **GET** /w/{workspace}/postgres_triggers/postgres/version/{path} | get postgres version
[**get_template_script**](PostgresTriggerApi.md#get_template_script) | **GET** /w/{workspace}/postgres_triggers/get_template_script/{id} | get template script
[**is_valid_postgres_configuration**](PostgresTriggerApi.md#is_valid_postgres_configuration) | **GET** /w/{workspace}/postgres_triggers/is_valid_postgres_configuration/{path} | check if postgres configuration is set to logical
[**list_postgres_publication**](PostgresTriggerApi.md#list_postgres_publication) | **GET** /w/{workspace}/postgres_triggers/publication/list/{path} | list postgres publication
[**list_postgres_replication_slot**](PostgresTriggerApi.md#list_postgres_replication_slot) | **GET** /w/{workspace}/postgres_triggers/slot/list/{path} | list postgres replication slot
[**list_postgres_triggers**](PostgresTriggerApi.md#list_postgres_triggers) | **GET** /w/{workspace}/postgres_triggers/list | list postgres triggers
[**set_postgres_trigger_mode**](PostgresTriggerApi.md#set_postgres_trigger_mode) | **POST** /w/{workspace}/postgres_triggers/setmode/{path} | set enabled postgres trigger
[**test_postgres_connection**](PostgresTriggerApi.md#test_postgres_connection) | **POST** /w/{workspace}/postgres_triggers/test | test postgres connection
[**update_postgres_publication**](PostgresTriggerApi.md#update_postgres_publication) | **POST** /w/{workspace}/postgres_triggers/publication/update/{publication}/{path} | update publication for postgres
[**update_postgres_trigger**](PostgresTriggerApi.md#update_postgres_trigger) | **POST** /w/{workspace}/postgres_triggers/update/{path} | update postgres trigger
## create_postgres_publication
> String create_postgres_publication(workspace, path, publication, publication_data)
create publication for postgres
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
**publication** | **String** | The name of the publication | [required] |
**publication_data** | [**PublicationData**](PublicationData.md) | new publication for postgres | [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)
## create_postgres_replication_slot
> String create_postgres_replication_slot(workspace, path, slot)
create replication slot for postgres
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
**slot** | [**Slot**](Slot.md) | new slot for postgres | [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)
## create_postgres_trigger
> String create_postgres_trigger(workspace, new_postgres_trigger)
create postgres trigger
### Parameters
**workspace** | **String** | | [required] |
**new_postgres_trigger** | [**NewPostgresTrigger**](NewPostgresTrigger.md) | new postgres 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)
## create_template_script
> String create_template_script(workspace, template_script)
create template script
### Parameters
**workspace** | **String** | | [required] |
**template_script** | [**TemplateScript**](TemplateScript.md) | template script | [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_postgres_publication
> String delete_postgres_publication(workspace, path, publication)
delete postgres publication
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
**publication** | **String** | The name of the publication | [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)
## delete_postgres_replication_slot
> String delete_postgres_replication_slot(workspace, path, slot)
delete postgres replication slot
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
**slot** | [**Slot**](Slot.md) | replication slot of postgres | [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_postgres_trigger
> String delete_postgres_trigger(workspace, path)
delete postgres trigger
### Parameters
**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_postgres_trigger
> bool exists_postgres_trigger(workspace, path)
does postgres trigger exists
### Parameters
**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_postgres_publication
> models::PublicationData get_postgres_publication(workspace, path, publication)
get postgres publication
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
**publication** | **String** | The name of the publication | [required] |
### Return type
[**models::PublicationData**](PublicationData.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)
## get_postgres_trigger
> models::PostgresTrigger get_postgres_trigger(workspace, path)
get postgres trigger
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
### Return type
[**models::PostgresTrigger**](PostgresTrigger.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)
## get_postgres_version
> String get_postgres_version(workspace, path)
get postgres version
### Parameters
**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**: 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_template_script
> String get_template_script(workspace, id)
get template script
### Parameters
**workspace** | **String** | | [required] |
**id** | **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)
## is_valid_postgres_configuration
> bool is_valid_postgres_configuration(workspace, path)
check if postgres configuration is set to logical
### Parameters
**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)
## list_postgres_publication
> Vec<String> list_postgres_publication(workspace, path)
list postgres publication
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
### Return type
**Vec<String>**
### 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_postgres_replication_slot
> Vec<models::SlotList> list_postgres_replication_slot(workspace, path)
list postgres replication slot
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
### Return type
[**Vec<models::SlotList>**](SlotList.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_postgres_triggers
> Vec<models::PostgresTrigger> list_postgres_triggers(workspace, page, per_page, path, is_flow, path_start, label)
list postgres triggers
### Parameters
**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::PostgresTrigger>**](PostgresTrigger.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_postgres_trigger_mode
> String set_postgres_trigger_mode(workspace, path, set_http_trigger_mode_request)
set enabled postgres trigger
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
**set_http_trigger_mode_request** | [**SetHttpTriggerModeRequest**](SetHttpTriggerModeRequest.md) | updated postgres 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_postgres_connection
> String test_postgres_connection(workspace, test_postgres_connection_request)
test postgres connection
### Parameters
**workspace** | **String** | | [required] |
**test_postgres_connection_request** | [**TestPostgresConnectionRequest**](TestPostgresConnectionRequest.md) | test postgres 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_postgres_publication
> String update_postgres_publication(workspace, path, publication, publication_data)
update publication for postgres
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
**publication** | **String** | The name of the publication | [required] |
**publication_data** | [**PublicationData**](PublicationData.md) | update publication for postgres | [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_postgres_trigger
> String update_postgres_trigger(workspace, path, edit_postgres_trigger)
update postgres trigger
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
**edit_postgres_trigger** | [**EditPostgresTrigger**](EditPostgresTrigger.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)