# \DmnApi
All URIs are relative to */api*
Method | HTTP request | Description
------------- | ------------- | -------------
[**archive_dmn_decision_by_path**](DmnApi.md#archive_dmn_decision_by_path) | **POST** /w/{workspace}/dmn_decisions/archive/{path} | archive DMN decision by path
[**create_dmn_decision**](DmnApi.md#create_dmn_decision) | **POST** /w/{workspace}/dmn_decisions/create | create DMN decision
[**delete_dmn_decision_by_path**](DmnApi.md#delete_dmn_decision_by_path) | **DELETE** /w/{workspace}/dmn_decisions/delete/{path} | delete DMN decision by path
[**evaluate_dmn_decision**](DmnApi.md#evaluate_dmn_decision) | **POST** /w/{workspace}/dmn_decisions/evaluate | evaluate a DMN decision
[**exists_dmn_decision_by_path**](DmnApi.md#exists_dmn_decision_by_path) | **GET** /w/{workspace}/dmn_decisions/exists/{path} | exists DMN decision by path
[**get_dmn_decision_by_path**](DmnApi.md#get_dmn_decision_by_path) | **GET** /w/{workspace}/dmn_decisions/get/{path} | get DMN decision by path
[**get_dmn_decision_by_path_with_draft**](DmnApi.md#get_dmn_decision_by_path_with_draft) | **GET** /w/{workspace}/dmn_decisions/get/draft/{path} | get DMN decision by path with draft
[**get_dmn_decision_history**](DmnApi.md#get_dmn_decision_history) | **GET** /w/{workspace}/dmn_decisions/history/p/{path} | get DMN decision history by path
[**list_dmn_decisions**](DmnApi.md#list_dmn_decisions) | **GET** /w/{workspace}/dmn_decisions/list | list all DMN decisions
[**update_dmn_decision**](DmnApi.md#update_dmn_decision) | **POST** /w/{workspace}/dmn_decisions/update/{path} | update DMN decision
## archive_dmn_decision_by_path
> String archive_dmn_decision_by_path(workspace, path, archive_flow_by_path_request)
archive DMN decision by path
### Parameters
Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
**archive_flow_by_path_request** | [**ArchiveFlowByPathRequest**](ArchiveFlowByPathRequest.md) | archive DMN decision | [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_dmn_decision
> String create_dmn_decision(workspace, new_dmn_decision)
create DMN decision
### Parameters
Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** | | [required] |
**new_dmn_decision** | [**NewDmnDecision**](NewDmnDecision.md) | DMN decision to create | [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_dmn_decision_by_path
> String delete_dmn_decision_by_path(workspace, path)
delete DMN decision by path
### Parameters
Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**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)
## evaluate_dmn_decision
> models::EvaluateResponse evaluate_dmn_decision(workspace, evaluate_request)
evaluate a DMN decision
Evaluate a saved decision (decision_id, no inline xml) or an inline document (xml, with decision_id optional). These two cases use decision_id differently: when evaluating a stored decision, decision_id is purely the storage path used to load the XML, not a selector into it. For inline xml, decision_id doubles as an in-document `<decision id>` selector, since the storage path and the document's internal decision id are unrelated namespaces. To select a specific decision inside the document explicitly -- including a non-first decision in a saved multi-decision document -- supply decision_ref, which is always the in-document selector regardless of branch. An archived stored decision cannot be evaluated (400).
### Parameters
Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** | | [required] |
**evaluate_request** | [**EvaluateRequest**](EvaluateRequest.md) | decision reference (saved path or inline XML) plus input values | [required] |
### Return type
[**models::EvaluateResponse**](EvaluateResponse.md)
### 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_dmn_decision_by_path
> bool exists_dmn_decision_by_path(workspace, path)
exists DMN decision by path
### Parameters
Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**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_dmn_decision_by_path
> models::DmnDecision get_dmn_decision_by_path(workspace, path)
get DMN decision by path
### Parameters
Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
### Return type
[**models::DmnDecision**](DmnDecision.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_dmn_decision_by_path_with_draft
> models::DmnDecisionWithDraft get_dmn_decision_by_path_with_draft(workspace, path)
get DMN decision by path with draft
### Parameters
Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
### Return type
[**models::DmnDecisionWithDraft**](DmnDecisionWithDraft.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_dmn_decision_history
> Vec<models::DmnDecisionVersion> get_dmn_decision_history(workspace, path)
get DMN decision history by path
### Parameters
Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
### Return type
[**Vec<models::DmnDecisionVersion>**](DmnDecisionVersion.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_dmn_decisions
> Vec<models::ListableDmnDecision> list_dmn_decisions(workspace, page, per_page, order_desc, path_start, path_exact, show_archived, include_draft_only, label, edited_by, without_description)
list all DMN decisions
### Parameters
Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**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) | |
**order_desc** | Option<**bool**> | order by desc order (default true) | |
**path_start** | Option<**String**> | mask to filter matching starting path | |
**path_exact** | Option<**String**> | mask to filter exact matching path | |
**show_archived** | Option<**bool**> | | |
**include_draft_only** | Option<**bool**> | | |
**label** | Option<**String**> | Filter by label | |
**edited_by** | Option<**String**> | Filter by the user who last edited the decision | |
**without_description** | Option<**bool**> | Return NULL for description to reduce payload size | |
### Return type
[**Vec<models::ListableDmnDecision>**](ListableDmnDecision.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_dmn_decision
> String update_dmn_decision(workspace, path, new_dmn_decision)
update DMN decision
### Parameters
Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workspace** | **String** | | [required] |
**path** | **String** | | [required] |
**new_dmn_decision** | [**NewDmnDecision**](NewDmnDecision.md) | DMN decision to update | [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)