Deactivate an Application
put
/process/api/v1/design/dmnApplications/{applicationName}/versions/{version}/deactivate
Deactivate an application by name and version.
Request
Path Parameters
-
applicationName(required): string
Application name
-
version(required): string
Application version
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Application deactivated
Root 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" ]
202 Response
Successfully started application deactivation
Root 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" ]
401 Response
Unauthorized
404 Response
Application not found.
500 Response
An internal error occurred.
Examples
The following example shows how to deactivate a decision application with a version 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.
Example: cURL command to deactivate application Invoicing version 1
curl -X 'PUT' \
'https://oracle.com/decision/api/v1/design/dmnApplications/Invoicing/versions/1/deactivate' \
-H 'accept: application/json'
Example: Response body of 200 successful response in JSON format
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"snapshotId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"snapshotName": "string",
"isDefault": true,
"audit": {
"createdBy": "string",
"createdOn": "2024-06-13T16:06:00.160Z"
},
"status": "ACTIVATION_STARTED"
}