Skip to main content
GET
/
decision-definition
/
key
/
{key}
/
xml
Get XML By Key
curl --request GET \
  --url http://{host}:{port}/{contextPath}/decision-definition/key/{key}/xml \
  --header 'Authorization: Basic <encoded-value>'
{
  "id": "aDecisionDefinitionId",
  "dmnXml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n                                    <definitions xmlns=\"http://www.omg.org/spec/DMN/20151101/dmn.xsd\"\n                                                 id=\"definitions\"\n                                                 name=\"camunda\"\n                                                 namespace=\"http://camunda.org/schema/1.0/dmn\">\n                                      <decision id=\"testDecision\" name=\"decision\">\n                                        <decisionTable id=\"table\">\n                                          <output id=\"result\" name=\"result\" >\n                                          </output>\n                                          <rule id=\"rule\">\n                                            <outputEntry id=\"output1\">\n                                              <text>\"not okay\"</text>\n                                            </outputEntry>\n                                          </rule>\n                                        </decisionTable>\n                                      </decision>\n                                    </definitions>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

key
string
required

The key of the decision definition (the latest version thereof).

Response

Request successful.

id
string | null

The id of the decision definition.

dmnXml
string | null

An escaped XML string containing the XML that this decision definition was deployed with. Carriage returns, line feeds and quotation marks are escaped.