Deploy the Latest Version of a Project

post

/ic/api/process/v1/spaces/{spaceId}/projects/{projectId}/snapshots/{snapshotId}/deploy

Deploys the latest public version of the specified project and returns the deployed public version.

Request

Supported Media Types
Path Parameters
Query Parameters
  • Select deployment partition target
    Default Value: ORACLEINTERNALPCS
    Allowed Values: [ "ORACLEINTERNALPCS", "ORACLEINTERNALPCSPLAYER" ]
Body ()
The deploy configuration
Root Schema : DeployConfig
Type: object
configuration for deploying a new revision of the project
Show Source
Nested Schema : businessParameters
Type: array
Show Source
Nested Schema : endpointsConfig
Type: object
Nested Schema : businessParameters
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : deployedProject
Type: object

201 Response

Success. Sanpshot successfully deployed.

401 Response

Unauthorized

403 Response

Privileges required. User can't deploy the snapshot

404 Response

Space/Project/Snapshot not found.

500 Response

Error in deploying sanpshot
Back to Top

Examples

The following example shows how to deploy the latest version of the project by submitting a POST request on the REST resource.

Send Request

The following example shows the contents of the send request:

https://example.com/ic/api/process/<version>/spaces/<spaceId>/projects/<projectId>/snapshots/<snapshotId>/deploy?target=<targetId>

Where,

  • example.com is the host where Oracle Integration is running.

  • <version> is the REST API version.

  • <spaceId> is the unique ID for a space. To retrieve available spaces, see Retrieve Spaces.

  • <projectId> is the unique ID for a project. To retrieve available projects, see Retrieve projects

  • <snapshotId> is the unique ID for a snapshot. To retrieve available snapshots, see Retrieve the snapshots of a given project

  • <targetId> is the deployment partition target of a project. Allowed values are ORACLEINTERNALPCS and ORACLEINTERNALPCSPLAYER.

Example of Request Header

Content-Type:  application/json

Example of Request Body

  {
  "revisionId": "1.0",
  "overwrite": false,
  "forceDefault": false,
  "addMeToAllRoles": false,
 }

Example of Response Header

Status Code: 200 OK
Date:  Tue, 21 Mar 2017 08:39:54 GMT
Content-Type:  application/json

Example of Response Body

{
  "partition": "ORACLEINTERNALPCS",
  "revisionId": "1.0",
  "RunTimeLiveInfo": {
    "state": "ON",
    "mode": "ACTIVE"
  },
  "DesignTimeProjectReference": {
    "spaceId": "89f7e082-6855-4a75-b2a6-6a726aff7f23",
    "projectId": "myprojectdeploy",
    "snapshotId": "Snapshot"
  },
  "RunTimeDeployInfo": {
    "deployTime": "2017-04-04,22:09:40 PDT",
    "isDefault": false
  },
  "processDefIds": [
    "oracleinternalpcs~myprojectdeploy!4.0~FormApprovalProcess"
  ],
  "links": [
    {
      "href": "http://example.com:7001/ic/api/proces/v1/targets/oracleinternalpcs/projects/myprojectdeploy/revisions/4.0",
      "rel": "self"
    },
    {
      "href": "http://example.com:7001/ic/api/process/v1/targets/oracleinternalpcs/projects/myprojectdeploy/revisions/4.0",
      "rel": "canonical"
    },
    {
      "href": "http://example.com:7001/ic/api/process/v1/",
      "rel": "parent"
    }
  ]
}
Back to Top