Version an Application
put
/process/api/v1/design/dmnApplications/{applicationName}/versions/{version}/version
Create a new application from another version.
Request
Path Parameters
-
applicationName(required): string
Application name
-
version(required): string
Application version
Supported Media Types
- application/json
Root Schema : schema
Type:
object
Request body for versioning
Show Source
-
newVersion(required): string
New application version
Response
Supported Media Types
- application/json
201 Response
Successful version created
Nested Schema : Activation
Type:
Show Source
object
-
audit: object
Audit
-
id: string
(uuid)
-
isDefault: boolean
-
snapshotId: string
(uuid)
-
snapshotName: string
-
status: string
Allowed Values:
[ "ACTIVATION_STARTED", "ACTIVATING", "ACTIVATED", "ACTIVATION_FAILED", "DEACTIVATING", "DEACTIVATED", "DEACTIVATION_FAILED" ]
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.
500 Response
Unexpected error versioning application
Examples
The following example shows how to create a decision application from a version of an existing decision application by submitting a PUT 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.
Version application request body:
{
"newVersion": "2a"
}
Example: cURL command to create a new version of an existing application Invoicing version 1
curl -X 'PUT' \
'https://oracle.com/decision/api/v1/design/dmnApplications/Invoicing/versions/1/version' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"newVersion": "2a"
}'
Example: Response body of 201 successful response in JSON format
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"version": "string",
"title": "string",
"description": "string",
"audit": {
"createdBy": "string",
"createdOn": "2024-06-13T17:35:08.121Z"
},
"assets": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"type": "string"
}
],
"snapshots": [
{
"items": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"description": "string",
"audit": {
"createdBy": "string",
"createdOn": "2024-06-13T17:35:08.121Z"
},
"status": "IN_PROGRESS",
"validation": "IN_PROGRESS"
}
],
"count": 0
}
],
"activation": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"snapshotId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"snapshotName": "string",
"isDefault": true,
"audit": {
"createdBy": "string",
"createdOn": "2024-06-13T17:35:08.121Z"
},
"status": "ACTIVATION_STARTED"
}
}