Delete a Decision Model Snapshot
delete
/ic/api/process/v1/dmn/spaces/{spaceId}/decision-models/{decisionModelName}/versions/{decisionModelVersion}
Deletes a decision model snapshot. Before the snapshot can be deleted, the caller should undeploy the snapshot by making a DELETE request on the corresponding tag resource /dmn/spaces/{spaceId}/decision-models/{decisionModelName}/tags/{tagName}. The tag name represents the runtime version ID of the snapshot. Otherwise, status 409 will be returned.
Request
Path Parameters
-
decisionModelName(required): string
Name of the Decision Model
-
decisionModelVersion(required): string
Decision model version ID, this is usually the snapshot nameDefault Value:
LATEST
-
spaceId(required): string
Identifies the Process space in which the decision model was created.
Header Parameters
-
Authorization(required): 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
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
409 Response
Conflict (Cannot delete active version)
500 Response
Internal Server Error