# \ResourceApi
All URIs are relative to */api*
[**create_resource**](ResourceApi.md#create_resource) | **POST** /w/{workspace}/resources/create | create resource
[**create_resource_type**](ResourceApi.md#create_resource_type) | **POST** /w/{workspace}/resources/type/create | create resource_type
[**delete_resource**](ResourceApi.md#delete_resource) | **DELETE** /w/{workspace}/resources/delete/{path} | delete resource
[**delete_resource_type**](ResourceApi.md#delete_resource_type) | **DELETE** /w/{workspace}/resources/type/delete/{path} | delete resource_type
[**delete_resources_bulk**](ResourceApi.md#delete_resources_bulk) | **DELETE** /w/{workspace}/resources/delete_bulk | delete resources in bulk
[**exists_resource**](ResourceApi.md#exists_resource) | **GET** /w/{workspace}/resources/exists/{path} | does resource exists
[**exists_resource_type**](ResourceApi.md#exists_resource_type) | **GET** /w/{workspace}/resources/type/exists/{path} | does resource_type exists
[**file_resource_type_to_file_ext_map**](ResourceApi.md#file_resource_type_to_file_ext_map) | **GET** /w/{workspace}/resources/file_resource_type_to_file_ext_map | get map from resource type to format extension
[**get_git_commit_hash**](ResourceApi.md#get_git_commit_hash) | **GET** /w/{workspace}/resources/git_commit_hash/{path} | get git repository latest commit hash
[**get_mcp_tools**](ResourceApi.md#get_mcp_tools) | **GET** /w/{workspace}/resources/mcp_tools/{path} | get MCP tools from resource
[**get_resource**](ResourceApi.md#get_resource) | **GET** /w/{workspace}/resources/get/{path} | get resource
[**get_resource_type**](ResourceApi.md#get_resource_type) | **GET** /w/{workspace}/resources/type/get/{path} | get resource_type
[**get_resource_value**](ResourceApi.md#get_resource_value) | **GET** /w/{workspace}/resources/get_value/{path} | get resource value
[**get_resource_value_interpolated**](ResourceApi.md#get_resource_value_interpolated) | **GET** /w/{workspace}/resources/get_value_interpolated/{path} | get resource interpolated (variables and resources are fully unrolled)
[**list_resource**](ResourceApi.md#list_resource) | **GET** /w/{workspace}/resources/list | list resources
[**list_resource_names**](ResourceApi.md#list_resource_names) | **GET** /w/{workspace}/resources/list_names/{name} | list resource names
[**list_resource_type**](ResourceApi.md#list_resource_type) | **GET** /w/{workspace}/resources/type/list | list resource_types
[**list_resource_type_names**](ResourceApi.md#list_resource_type_names) | **GET** /w/{workspace}/resources/type/listnames | list resource_types names
[**list_search_resource**](ResourceApi.md#list_search_resource) | **GET** /w/{workspace}/resources/list_search | list resources for search
[**query_resource_types**](ResourceApi.md#query_resource_types) | **GET** /w/{workspace}/embeddings/query_resource_types | query resource types by similarity
[**update_resource**](ResourceApi.md#update_resource) | **POST** /w/{workspace}/resources/update/{path} | update resource
[**update_resource_type**](ResourceApi.md#update_resource_type) | **POST** /w/{workspace}/resources/type/update/{path} | update resource_type
[**update_resource_value**](ResourceApi.md#update_resource_value) | **POST** /w/{workspace}/resources/update_value/{path} | update resource value
## create_resource
> String create_resource(workspace, create_resource, update_if_exists)
create resource
### Parameters
**workspace** | **String** | | [required] |
**create_resource** | [**CreateResource**](CreateResource.md) | new resource | [required] |
**update_if_exists** | Option<**bool**> | update the resource if it already exists (default false) | |
### 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_resource_type
> String create_resource_type(workspace, resource_type)
create resource_type
### Parameters
**workspace** | **String** | | [required] |
**resource_type** | [**ResourceType**](ResourceType.md) | new resource_type | [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_resource
> String delete_resource(workspace, path)
delete resource
### 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)
## delete_resource_type
> String delete_resource_type(workspace, path)
delete resource_type
### 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)
## delete_resources_bulk
> Vec<String> delete_resources_bulk(workspace, delete_variables_bulk_request)
delete resources in bulk
### Parameters
**workspace** | **String** | | [required] |
**delete_variables_bulk_request** | [**DeleteVariablesBulkRequest**](DeleteVariablesBulkRequest.md) | paths to delete | [required] |
### Return type
**Vec<String>**
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### 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)
## exists_resource
> bool exists_resource(workspace, path)
does resource 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)
## exists_resource_type
> bool exists_resource_type(workspace, path)
does resource_type 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)
## file_resource_type_to_file_ext_map
> std::collections::HashMap<String, models::FileResourceTypeToFileExtMap200ResponseValue> file_resource_type_to_file_ext_map(workspace)
get map from resource type to format extension
### Parameters
**workspace** | **String** | | [required] |
### Return type
[**std::collections::HashMap<String, models::FileResourceTypeToFileExtMap200ResponseValue>**](fileResourceTypeToFileExtMap_200_response_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_git_commit_hash
> models::GetGitCommitHash200Response get_git_commit_hash(workspace, path, git_ssh_identity)
get git repository latest commit hash
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
**git_ssh_identity** | Option<**String**> | | |
### Return type
[**models::GetGitCommitHash200Response**](getGitCommitHash_200_response.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_mcp_tools
> Vec<models::GetMcpTools200ResponseInner> get_mcp_tools(workspace, path)
get MCP tools from resource
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
### Return type
[**Vec<models::GetMcpTools200ResponseInner>**](getMcpTools_200_response_inner.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_resource
> models::Resource get_resource(workspace, path)
get resource
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
### Return type
[**models::Resource**](Resource.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_resource_type
> models::ResourceType get_resource_type(workspace, path)
get resource_type
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
### Return type
[**models::ResourceType**](ResourceType.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_resource_value
> serde_json::Value get_resource_value(workspace, path)
get resource value
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
### 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_resource_value_interpolated
> serde_json::Value get_resource_value_interpolated(workspace, path, job_id, allow_cache)
get resource interpolated (variables and resources are fully unrolled)
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
**job_id** | Option<**uuid::Uuid**> | job id | |
**allow_cache** | Option<**bool**> | allow getting a cached value for improved performance | |
### 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)
## list_resource
> Vec<models::ListableResource> list_resource(workspace, page, per_page, resource_type, resource_type_exclude, path_start, path, description, value, broad_filter, label)
list resources
### 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) | |
**resource_type** | Option<**String**> | resource_types to list from, separated by ',', | |
**resource_type_exclude** | Option<**String**> | resource_types to not list from, separated by ',', | |
**path_start** | Option<**String**> | filter resources by path prefix | |
**path** | Option<**String**> | exact path match filter | |
**description** | Option<**String**> | pattern match filter for description field (case-insensitive) | |
**value** | Option<**String**> | JSONB subset match filter using base64 encoded JSON | |
**broad_filter** | Option<**String**> | broad search across multiple fields (case-insensitive substring match) | |
**label** | Option<**String**> | Filter by label | |
### Return type
[**Vec<models::ListableResource>**](ListableResource.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_resource_names
> Vec<models::ListResourceNames200ResponseInner> list_resource_names(workspace, name)
list resource names
### Parameters
**workspace** | **String** | | [required] |
**name** | **String** | | [required] |
### Return type
[**Vec<models::ListResourceNames200ResponseInner>**](listResourceNames_200_response_inner.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_resource_type
> Vec<models::ResourceType> list_resource_type(workspace)
list resource_types
### Parameters
**workspace** | **String** | | [required] |
### Return type
[**Vec<models::ResourceType>**](ResourceType.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_resource_type_names
> Vec<String> list_resource_type_names(workspace)
list resource_types names
### Parameters
**workspace** | **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_search_resource
> Vec<models::ListSearchResource200ResponseInner> list_search_resource(workspace)
list resources for search
### Parameters
**workspace** | **String** | | [required] |
### Return type
[**Vec<models::ListSearchResource200ResponseInner>**](listSearchResource_200_response_inner.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)
## query_resource_types
> Vec<models::QueryResourceTypes200ResponseInner> query_resource_types(workspace, text, limit)
query resource types by similarity
### Parameters
**workspace** | **String** | | [required] |
**text** | **String** | query text | [required] |
**limit** | Option<**f64**> | query limit | |
### Return type
[**Vec<models::QueryResourceTypes200ResponseInner>**](queryResourceTypes_200_response_inner.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)
## update_resource
> String update_resource(workspace, path, edit_resource)
update resource
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
**edit_resource** | [**EditResource**](EditResource.md) | updated resource | [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_resource_type
> String update_resource_type(workspace, path, edit_resource_type)
update resource_type
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
**edit_resource_type** | [**EditResourceType**](EditResourceType.md) | updated resource_type | [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_resource_value
> String update_resource_value(workspace, path, set_global_request)
update resource value
### Parameters
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
**set_global_request** | [**SetGlobalRequest**](SetGlobalRequest.md) | updated resource | [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)