Create an Empty Decision Model

put

/ic/api/process/v1/dmn/spaces/{spaceId}/decision-models/{decisionModelName}

Creates an empty decision model without any snapshots. This is the prerequisite for creating a snapshot in a decision model.

Request

Supported Media Types
Path Parameters
Header Parameters
  • Authorization header MUST be set to type Bearer and an access token must be provided i.e. 'Bearer '
    Default Value: Bearer XXXXX.XXXXX.XXXXX
Body ()
JSON representation of an empty decision model
Root Schema : DecisionModel
Match All
Show Source
Nested Schema : RestObject
Type: object
Show Source
Nested Schema : DecisionModel-allOf[1]
Type: object
Show Source
Nested Schema : RestCollection
Match All
Show Source
Nested Schema : RestCollection-allOf[1]
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Back to Top

Response

Supported Media Types

204 Response

No Content (Operation successful)

401 Response

Unauthorized

403 Response

Forbidden (Expired or invalid token)

404 Response

Not Found

500 Response

Internal Server Error
Back to Top

Examples

The following example shows you how to create an empty decision model without a snapshot.

Create an Empty Decision Model without a Snapshot

Send Request:

PUT /ic/api/process/v1/dmn/spaces/{spaceId}/decision-models/mydecisionmodel

Request Body:

{
  "@class": ".DecisionModel",
  "name": "mydecisionmodel",
  "description": "Any text description",
  "versions": {
    "@class": ".RestCollection",
    "name": "versions",
    "items": []
  },
  "tags": {
    "@class": ".RestCollection",
    "name": "tags",
    "items": []
  },
  "permissions": {
    "@class": ".RestCollection",
    "name": "permissions",
    "items": []
  }
}
Back to Top