Copy a Project
/ic/api/process/v1/spaces/{spaceId}/projects/{projectId}/clone
Request
- application/json
-
projectId(required): string
The project ID
-
spaceId(required): string
The space ID
object
Response
- application/json
- application/xml;qs=0.9
200 Response
object
400 Response
401 Response
403 Response
404 Response
500 Response
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" } ] }