Create a Snapshot

post

/process/api/v1/design/dmnApplications/{applicationName}/versions/{version}/snapshots

Creates a new snapshot from the latest changes.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Request body for snapshot creation
Show Source
Back to Top

Response

Supported Media Types

201 Response

Snapshot created
Body ()
Root Schema : Snapshots
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Snapshot
Type: object
Show Source
Nested Schema : Audit
Type: object
Show Source

401 Response

Unauthorized

404 Response

Application not found.

500 Response

An internal error occurred.
Back to Top

Examples

The following example shows how to create a snapshot from the latest changes by submitting a POST 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.

Snapshot request body

{
  "name": "Snapshot X",
  "description": "new snapshot"
}

Example: cURL command to create a snapshot of application Invoicing version 1

curl -X 'POST' \
      'https://oracle.com/decision/api/v1/design/dmnApplications/Invoicing/versions/1/snapshots'
      \   -H 'accept: application/json' \   -H 'Content-Type: application/json' \   -d '{
      "name": "Snapshot X",   "description": "new snapshot" }'

Example: Response body of 201 successful response in JSON format

{
  "items": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "name": "string",
      "description": "string",
      "audit": {
        "createdBy": "string",
        "createdOn": "2024-06-13T17:44:13.920Z"
      },
      "status": "IN_PROGRESS",
      "validation": "IN_PROGRESS"
    }
  ],
  "count": 0
}
Back to Top