# \StacksApi
All URIs are relative to */api*
[**create_stack**](StacksApi.md#create_stack) | **POST** /stacks |
[**delete_stack**](StacksApi.md#delete_stack) | **DELETE** /stacks/{id} |
[**delete_stacks**](StacksApi.md#delete_stacks) | **DELETE** /stacks |
[**get_stack**](StacksApi.md#get_stack) | **GET** /stacks/{id} |
[**remove_asset_from_stack**](StacksApi.md#remove_asset_from_stack) | **DELETE** /stacks/{id}/assets/{assetId} |
[**search_stacks**](StacksApi.md#search_stacks) | **GET** /stacks |
[**update_stack**](StacksApi.md#update_stack) | **PUT** /stacks/{id} |
## create_stack
> models::StackResponseDto create_stack(stack_create_dto)
This endpoint requires the `stack.create` permission.
### Parameters
**stack_create_dto** | [**StackCreateDto**](StackCreateDto.md) | | [required] |
### Return type
[**models::StackResponseDto**](StackResponseDto.md)
### Authorization
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
### 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)
## delete_stack
> delete_stack(id)
This endpoint requires the `stack.delete` permission.
### Parameters
**id** | **uuid::Uuid** | | [required] |
### Return type
(empty response body)
### Authorization
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
[[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_stacks
> delete_stacks(bulk_ids_dto)
This endpoint requires the `stack.delete` permission.
### Parameters
**bulk_ids_dto** | [**BulkIdsDto**](BulkIdsDto.md) | | [required] |
### Return type
(empty response body)
### Authorization
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: Not defined
[[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_stack
> models::StackResponseDto get_stack(id)
This endpoint requires the `stack.read` permission.
### Parameters
**id** | **uuid::Uuid** | | [required] |
### Return type
[**models::StackResponseDto**](StackResponseDto.md)
### Authorization
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
### 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)
## remove_asset_from_stack
> remove_asset_from_stack(asset_id, id)
This endpoint requires the `stack.update` permission.
### Parameters
**asset_id** | **uuid::Uuid** | | [required] |
**id** | **uuid::Uuid** | | [required] |
### Return type
(empty response body)
### Authorization
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
[[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)
## search_stacks
> Vec<models::StackResponseDto> search_stacks(primary_asset_id)
This endpoint requires the `stack.read` permission.
### Parameters
**primary_asset_id** | Option<**uuid::Uuid**> | | |
### Return type
[**Vec<models::StackResponseDto>**](StackResponseDto.md)
### Authorization
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
### 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)
## update_stack
> models::StackResponseDto update_stack(id, stack_update_dto)
This endpoint requires the `stack.update` permission.
### Parameters
**id** | **uuid::Uuid** | | [required] |
**stack_update_dto** | [**StackUpdateDto**](StackUpdateDto.md) | | [required] |
### Return type
[**models::StackResponseDto**](StackResponseDto.md)
### Authorization
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
### 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)