Query decision definitions (alpha)
POSThttp://localhost:8080/v2/decision-definitions/search
Search for decision definitions based on given criteria.
This endpoint is an alpha feature and not enabled on Camunda clusters out of the box. See the Camunda 8 REST API overview for further details.
Request​
- application/json
- application/vnd.camunda.api.keys.number+json
- application/vnd.camunda.api.keys.string+json
Body
sort object[]
page object
filter objectdeprecated
Body
sort object[]
page object
filter objectdeprecated
Body
sort object[]
page object
filter objectdeprecated
Responses​
- 200
- 400
- 500
The Decision Definition Search successful response.
- application/json
- application/vnd.camunda.api.keys.number+json
- application/vnd.camunda.api.keys.string+json
- Schema
- Example (auto)
Schema
page object
items object[]
{
"items": [
{
"decisionDefinitionKey": 0,
"decisionRequirementsKey": 0,
"decisionDefinitionId": "string",
"decisionDefinitionName": "string",
"version": 0,
"decisionRequirementsId": "string",
"tenantId": "string"
}
],
"page": {
"totalItems": 0,
"firstSortValues": [
{}
],
"lastSortValues": [
{}
]
}
}
- Schema
- Example (auto)
Schema
page object
items object[]
{
"items": [
{
"decisionDefinitionKey": 0,
"decisionRequirementsKey": 0,
"decisionDefinitionId": "string",
"decisionDefinitionName": "string",
"version": 0,
"decisionRequirementsId": "string",
"tenantId": "string"
}
],
"page": {
"totalItems": 0,
"firstSortValues": [
{}
],
"lastSortValues": [
{}
]
}
}
- Schema
- Example (auto)
Schema
page object
items object[]
{
"items": [
{
"decisionDefinitionKey": "string",
"decisionRequirementsKey": "string",
"decisionDefinitionId": "string",
"decisionDefinitionName": "string",
"version": 0,
"decisionRequirementsId": "string",
"tenantId": "string"
}
],
"page": {
"totalItems": 0,
"firstSortValues": [
{}
],
"lastSortValues": [
{}
]
}
}
The Decision Definition Search Query failed. More details are provided in the response body.
- application/problem+json
- Schema
- Example (auto)
Schema
A URI identifying the problem type.
about:blank
A summary of the problem type.
The HTTP status code for this problem.
Possible values: >= 400
and <= 600
An explanation of the problem in more detail.
A URI identifying the origin of the problem.
{
"type": "about:blank",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
An internal error occurred while processing the request.
- application/problem+json
- Schema
- Example (auto)
Schema
A URI identifying the problem type.
about:blank
A summary of the problem type.
The HTTP status code for this problem.
Possible values: >= 400
and <= 600
An explanation of the problem in more detail.
A URI identifying the origin of the problem.
{
"type": "about:blank",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
- curl
- java
- nodejs
- csharp
- python
- go
- CURL
curl -L 'http://localhost:8080/v2/decision-definitions/search' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"filter": {
"decisionDefinitionId": "string",
"decisionDefinitionName": "string",
"version": 0,
"decisionRequirementsId": "string",
"tenantId": "string",
"decisionDefinitionKey": 0,
"decisionRequirementsKey": 0
},
"sort": [
{
"field": "string",
"order": "asc"
}
],
"page": {
"from": 0,
"limit": 0,
"searchAfter": [
{}
],
"searchBefore": [
{}
]
}
}'