# WebhooksApi
All URIs are relative to *http://localhost*
| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**apiV2WebhooksGet**](WebhooksApi.md#apiV2WebhooksGet) | **GET** /api/v2/webhooks | Get all webhooks |
| [**apiV2WebhooksIdDelete**](WebhooksApi.md#apiV2WebhooksIdDelete) | **DELETE** /api/v2/webhooks/{id} | Delete webhook by ID |
| [**apiV2WebhooksIdGet**](WebhooksApi.md#apiV2WebhooksIdGet) | **GET** /api/v2/webhooks/{id} | Get webhook by ID |
| [**apiV2WebhooksIdPut**](WebhooksApi.md#apiV2WebhooksIdPut) | **PUT** /api/v2/webhooks/{id} | Edit webhook by ID |
| [**apiV2WebhooksPost**](WebhooksApi.md#apiV2WebhooksPost) | **POST** /api/v2/webhooks | Create webhook |
| [**apiV2WebhooksSearchPost**](WebhooksApi.md#apiV2WebhooksSearchPost) | **POST** /api/v2/webhooks/search | Search for webhooks |
| [**apiV2WebhooksSpecialVariablesGet**](WebhooksApi.md#apiV2WebhooksSpecialVariablesGet) | **GET** /api/v2/webhooks/specialVariables | Get special variables for webhook event type |
# **apiV2WebhooksGet**
> List apiV2WebhooksGet(projectId)
Get all webhooks
### Parameters
|Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **projectId** | **UUID**| Project unique ID | [optional] [default to null] |
### Return type
[**List**](../Models/WebHookModel.md)
### Authorization
[Bearer or PrivateToken](../README.md#Bearer or PrivateToken)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
# **apiV2WebhooksIdDelete**
> apiV2WebhooksIdDelete(id)
Delete webhook by ID
### Parameters
|Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **id** | **UUID**| Webhook unique ID | [default to null] |
### Return type
null (empty response body)
### Authorization
[Bearer or PrivateToken](../README.md#Bearer or PrivateToken)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
# **apiV2WebhooksIdGet**
> WebHookModel apiV2WebhooksIdGet(id)
Get webhook by ID
### Parameters
|Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **id** | **UUID**| Webhook unique ID | [default to null] |
### Return type
[**WebHookModel**](../Models/WebHookModel.md)
### Authorization
[Bearer or PrivateToken](../README.md#Bearer or PrivateToken)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
# **apiV2WebhooksIdPut**
> WebHookModel apiV2WebhooksIdPut(id, WebHookPostModel)
Edit webhook by ID
### Parameters
|Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **id** | **UUID**| Webhook unique ID | [default to null] |
| **WebHookPostModel** | [**WebHookPostModel**](../Models/WebHookPostModel.md)| | [optional] |
### Return type
[**WebHookModel**](../Models/WebHookModel.md)
### Authorization
[Bearer or PrivateToken](../README.md#Bearer or PrivateToken)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
# **apiV2WebhooksPost**
> WebHookModel apiV2WebhooksPost(WebHookPostModel)
Create webhook
### Parameters
|Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **WebHookPostModel** | [**WebHookPostModel**](../Models/WebHookPostModel.md)| | [optional] |
### Return type
[**WebHookModel**](../Models/WebHookModel.md)
### Authorization
[Bearer or PrivateToken](../README.md#Bearer or PrivateToken)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
# **apiV2WebhooksSearchPost**
> List apiV2WebhooksSearchPost(Skip, Take, OrderBy, SearchField, SearchValue, SearchWebhooksQueryModel)
Search for webhooks
### Parameters
|Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **Skip** | **Integer**| Amount of items to be skipped (offset) | [optional] [default to null] |
| **Take** | **Integer**| Amount of items to be taken (limit) | [optional] [default to null] |
| **OrderBy** | **String**| SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] [default to null] |
| **SearchField** | **String**| Property name for searching | [optional] [default to null] |
| **SearchValue** | **String**| Value for searching | [optional] [default to null] |
| **SearchWebhooksQueryModel** | [**SearchWebhooksQueryModel**](../Models/SearchWebhooksQueryModel.md)| | [optional] |
### Return type
[**List**](../Models/WebHookModel.md)
### Authorization
[Bearer or PrivateToken](../README.md#Bearer or PrivateToken)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
# **apiV2WebhooksSpecialVariablesGet**
> List apiV2WebhooksSpecialVariablesGet(eventType)
Get special variables for webhook event type
### Parameters
|Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **eventType** | [**WebHookEventType**](../Models/.md)| Webhook event type | [optional] [default to null] [enum: AutomatedTestRunCreated, TestPlansStatusChanged] |
### Return type
**List**
### Authorization
[Bearer or PrivateToken](../README.md#Bearer or PrivateToken)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json