Retrieves the DMN XML of a decision definition.


GET /decision-definition/{id}/xml

GET /decision-definition/key/{key}/xml (returns the XML for the latest version of the decision definition which belongs to no tenant)

GET /decision-definition/key/{key}/tenant-id/{tenant-id}/xml (returns the XML of the latest version of the decision definition for tenant)


Path Parameters

Name Description
id The id of the decision definition.
key The key of the decision definition (the latest version thereof) to be retrieved.
tenant-id The id of the tenant the decision definition belongs to.


A JSON object containing the id of the decision definition and the DMN 1.0 XML.

Name Value Description
id String The id of the decision definition.
dmnXml String An escaped XML string containing the XML that this decision definition was deployed with. Carriage returns, line feeds and quotation marks are escaped.

Response codes

Code Media type Description
200 application/json Request successful.
404 application/json Decision definition with given id or key does not exist. See the Introduction for the error response format.



GET /decision-definition/aDecisionDefinitionId/xml

GET /decision-definition/key/aDecisionDefinitionKey/xml


  "dmnXml":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<Definitions xmlns:xsi=\"\"
  <Decision id=\"aDecisionDefinitionKey\" name=\"My Decision\">\r\n

On this Page: