Copy a Project

post

/ic/api/process/v1/spaces/{spaceId}/projects/{projectId}/clone

Creates a copy of the project with a different name

Request

Supported Media Types
Path Parameters
Body ()
The new project name
Root Schema : cloneConfiguration
Type: object
Show Source
Nested Schema : endpointsConfig
Type: object
Back to Top

Response

Supported Media Types

200 Response

Success. Project succesfully cloned.
Body ()
Root Schema : project
Type: object
the representation of a design time project

400 Response

Clone name is invalid.

401 Response

Unauthorized

403 Response

Privileges required. User can't clone the project

404 Response

Space/Project not found.

500 Response

Error in cloning project
Back to Top

Examples

The following example shows how to create a copy of the project with a different name 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>/clone

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

Example of Request Body (Clone to the Same SpaceId)

{
  "cloneName": "NewProject"
 }

Example of Request Body (Clone to a different SpaceId)

{
  "cloneName": "NewProject",
"targetSpaceId": "89f7e082-6855-4a75-b2a6-6a726aff7f23" }

Example of Response Header

Status Code: 200 OK
Date:   Mon, 03 Apr 2017 09:39:39 GMT 
Content-Type:  application/json

Example of Response Body

{
  "id": "new",
  "name": "new",
  "description": "My new project",
  "type": "BPM",
  "creator": "jsmith",
  "creation": "2017-04-04,01:23:43 PDT",
  "links": [
    {
      "href": "http://example.com:7001/ic/api/process/v1/spaces/89f7e082-6855-4a75-b2a6-6a726aff7f23/projects/new1",
      "rel": "self"
    },
    {
      "href": "http://example.com:7001/ic/api/process/v1/spaces/89f7e082-6855-4a75-b2a6-6a726aff7f23/projects/new1",
      "rel": "canonical"
    },
    {
      "href": "http://example.com:7001/ic/api/process/v1/spaces/89f7e082-6855-4a75-b2a6-6a726aff7f23",
      "rel": "parent"
    },
    {
      "href": "http://example.com:7001/ic/api/process/v1/spaces/89f7e082-6855-4a75-b2a6-6a726aff7f23/projects/new1/processes",
      "rel": "child"
    },
    {
      "href": "http://example.com:7001/ic/api/process/v1/spaces/89f7e082-6855-4a75-b2a6-6a726aff7f23/projects/new1/snapshots",
      "rel": "child"
    }
  ]
}
Back to Top