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
- application/json
Path Parameters
-
decisionModelName: string
Name of the Decision Model
-
spaceId: string
Identifies the Process space in which the decision model was created.
Header Parameters
-
Authorization: string
Authorization header MUST be set to type Bearer and an access token must be provided i.e. 'Bearer
' Default Value:Bearer XXXXX.XXXXX.XXXXX
JSON representation of an empty decision model
Nested Schema : DecisionModel-allOf[1]
Type:
Show Source
object
-
class(optional):
string
Default Value:
.DecisionModel
-
permissions(optional):
RestCollection
-
tags(optional):
RestCollection
-
versions(optional):
RestCollection
Response
Supported Media Types
- text/plain
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
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": []
}
}