Delete a Snapshot
delete
/process/api/v1/design/dmnApplications/{applicationName}/versions/{version}/snapshots/{snapshotId}
Delete a snapshot from an application.
Request
Path Parameters
-
applicationName(required): string
Application name
-
snapshotId(required): string(uuid)
Snapshot id
-
version(required): string
Application version
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Snapshot deleted
Nested Schema : Snapshot
Type:
Show Source
object
-
audit: object
Audit
-
description: string
-
id: string
(uuid)
-
name: string
-
status: string
Allowed Values:
[ "IN_PROGRESS", "SUCCESSFUL", "FAILED" ]
-
validation: string
Allowed Values:
[ "IN_PROGRESS", "SUCCESSFUL", "SUCCESSFUL_WITH_WARNINGS", "FAILED" ]
401 Response
Unauthorized
404 Response
Application not found.
409 Response
Application must be deactivated before it can be deleted.
500 Response
An internal error occurred.
Examples
The following example shows how to delete a snapshot by submitting a DELETE request on the REST resource using cURL. For more information about cURL, see cURL Access. For more information about endpoint URL structure, see Send Requests.
Example: cURL command to delete a snapshot of application Invoicing version 1
curl -X 'DELETE' \
'https://<URL>/decision/api/v1/design/dmnApplications/Invoicing/versions/1/snapshots/3fa85f64-5717-4562-b3fc-2c963f66afa6'
\ -H 'accept: application/json'
Example: Response body of 200 successful response in JSON format
{
"items": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"description": "string",
"audit": {
"createdBy": "string",
"createdOn": "2024-06-13T17:48:25.146Z"
},
"status": "IN_PROGRESS",
"validation": "IN_PROGRESS"
}
],
"count": 0
}