Get the Version of an Application
get
/decision/api/v1/applications/{appId}/versions/{versionId}
Retrieves the details of an activated decision application or a process application that contains a local decision.
If the application version is activated, the boolean property activated returns true.
Decision models do not support the default deployed version, and hence the DefaultVersion property always returns false.
Request
Path Parameters
-
appId(required): string
Name of the application
-
versionId(required): string
Application version identifier
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : ApplicationVersionDetails
Title:
ApplicationVersionDetails
Match All
Show Source
-
allOf
ApplicationVersion
Title:
ApplicationVersion
-
object
CommonDetails
Title:
CommonDetails
Nested Schema : ApplicationVersion
Title:
ApplicationVersion
Match All
Show Source
-
object
Links
Title:
Links
-
object
ApplicationVersion-allOf[1]
Nested Schema : ApplicationVersion-allOf[1]
Type:
Show Source
object
-
activated: boolean
Default Value:
false
-
defaultVersion: boolean
Default Value:
false
-
version(required): string
Nested Schema : CommonDetails
Type:
object
Title:
Show Source
CommonDetails
-
createdBy: string
-
createdTime: string
Example:
2022-08-29T09:12:33.001Z
-
description: string
-
lastChangedBy: string
-
lastChangedTime: string
Example:
2022-08-29T09:12:33.001Z
Nested Schema : Link
Type:
object
Defines Link
Show Source
-
code: integer
Minimum Value:
100
Maximum Value:600
-
href(required): string
-
hreflang: string
-
length: integer
(int32)
-
mediaType: string
-
message: string
-
rel(required): string
-
title: string
-
type: string
400 Response
Bad request
401 Response
Unauthorized
404 Response
Resource not found
500 Response
Internal error
Examples
Example: Get details of X version of the Invoicing application
The following example shows how to get details of a specific version of a application by submitting a GET 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.
curl -X 'GET' \
'https://oracle.com/decision/api/v1/applications/Invoicing/versions/X' \ -H 'accept:
application/json'
Example Format of 200 Operation Successful Response
{
"links": [
{
"href": "string",
"hreflang": "string",
"length": 0,
"rel": "string",
"title": "string",
"type": "string",
"mediaType": "string",
"message": "string",
"code": 600
}
],
"version": "string",
"activated": false,
"defaultVersion": false,
"description": "string",
"createdTime": "2022-08-29T09:12:33.001Z",
"lastChangedTime": "2022-08-29T09:12:33.001Z",
"createdBy": "string",
"lastChangedBy": "string"
}
Example Format of Bad Request Response
{
"errorCode": "string",
"status": 0,
"message": "string",
"details": "string",
"cause": "string",
"opcRequestId": "string"
}