# \WorkspaceDependenciesApi

All URIs are relative to */api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**archive_workspace_dependencies**](WorkspaceDependenciesApi.md#archive_workspace_dependencies) | **POST** /w/{workspace}/workspace_dependencies/archive/{language} | archive workspace dependencies (require admin)
[**create_workspace_dependencies**](WorkspaceDependenciesApi.md#create_workspace_dependencies) | **POST** /w/{workspace}/workspace_dependencies/create | create workspace dependencies
[**delete_workspace_dependencies**](WorkspaceDependenciesApi.md#delete_workspace_dependencies) | **POST** /w/{workspace}/workspace_dependencies/delete/{language} | delete workspace dependencies (require admin)
[**get_latest_workspace_dependencies**](WorkspaceDependenciesApi.md#get_latest_workspace_dependencies) | **GET** /w/{workspace}/workspace_dependencies/get_latest/{language} | get latest workspace dependencies by language and name
[**list_workspace_dependencies**](WorkspaceDependenciesApi.md#list_workspace_dependencies) | **GET** /w/{workspace}/workspace_dependencies/list | list all workspace dependencies



## archive_workspace_dependencies

> serde_json::Value archive_workspace_dependencies(workspace, language, name)
archive workspace dependencies (require admin)

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**language** | [**ScriptLang**](.md) |  | [required] |
**name** | Option<**String**> |  |  |

### Return type

[**serde_json::Value**](serde_json::Value.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)


## create_workspace_dependencies

> String create_workspace_dependencies(workspace, new_workspace_dependencies)
create workspace dependencies

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**new_workspace_dependencies** | [**NewWorkspaceDependencies**](NewWorkspaceDependencies.md) | New workspace dependencies | [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_workspace_dependencies

> serde_json::Value delete_workspace_dependencies(workspace, language, name)
delete workspace dependencies (require admin)

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**language** | [**ScriptLang**](.md) |  | [required] |
**name** | Option<**String**> |  |  |

### Return type

[**serde_json::Value**](serde_json::Value.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_latest_workspace_dependencies

> models::WorkspaceDependencies get_latest_workspace_dependencies(workspace, language, name)
get latest workspace dependencies by language and name

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** |  | [required] |
**language** | [**ScriptLang**](.md) |  | [required] |
**name** | Option<**String**> |  |  |

### Return type

[**models::WorkspaceDependencies**](WorkspaceDependencies.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_workspace_dependencies

> Vec<models::WorkspaceDependencies> list_workspace_dependencies(workspace)
list all workspace dependencies

### Parameters


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

### Return type

[**Vec<models::WorkspaceDependencies>**](WorkspaceDependencies.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)

