Update a Deployed Project Revision
/ic/api/process/v1/targets/{targetId}/projects/{projectId}/revisions/{revision}
Request
- application/json
-
projectId(required): string
The project ID
-
revision(required): string
The revision ID
-
targetId(required): string
Select deployment partition targetAllowed Values:
[ "ORACLEINTERNALPCS", "ORACLEINTERNALPCSPLAYER" ]
object
-
mode:
string
Allowed Values:
[ "ACTIVE", "RETIRED" ]
the revision mode -
state:
string
Allowed Values:
[ "ON", "OFF" ]
the revision state
Response
- application/json
- application/xml;qs=0.9
200 Response
object
401 Response
403 Response
500 Response
Examples
The following example shows how to update the revision of a project by submitting a PATCH request on the REST resource by using post tunneling.
curl -X POST \
-H "Authorization: Bearer access_token\
-H 'content-type: application/json' \
-H 'x-http-method-override: PATCH' \
-d '{ "state": "ON", "mode": "ACTIVE" }'
https://example.com/ic/api/process/v1/targets/oracleinternalpcs/projects/DOCs/revisions/5
Send Request
The following example shows the contents of the send request:
https://example.com/ic/api/process/<version>/targets/<targetId>/projects/<projectId>/revisions/<revision>
Where,
-
example.com
is the host where Oracle Integration is running. -
<version> is the REST API version.
-
<targetId> is the deployment partition target of a project. Allowed values are
ORACLEINTERNALPCS
andORACLEINTERNALPCSPLAYER
. -
<projectId> is the unique ID for a project. To retrieve available projects, see Retrieve projects
-
<revision> is the revision number for a project. To retrieve available revisions, see Retrieve all revisions of the specified project
Example of Request Header
Content-Type: application/json
Example of Request Body
{ "state": "ON", "mode": "ACTIVE" }
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
{ "partition": "ORACLEINTERNALPCS", "revisionId": "1.0", "RunTimeLiveInfo": { "state": "ON", "mode": "ACTIVE" }, "DesignTimeProjectReference": { "spaceId": "c8e6ce16-ce2d-4090-add5-ec0bc3cc7eeb", "projectId": "Mynewproject" }, "RunTimeDeployInfo": { "deployTime": "2017-04-04,23:29:02 PDT", "isDefault": false }, "processDefIds": [oracleinternalpcs~projecttodeploy1!1.0~TravelApproval], "links": [ { "href": "http://example.com:7001/ic/api/process/v1/targets/oracleinternalpcs/projects/Mynewproject/revisions/1.0", "rel": "self" }, { "href": "http://example.com:7001/ic/api/process/v1/targets/oracleinternalpcs/projects/Mynewproject/revisions/1.0", "rel": "canonical" }, { "href": "http://example.com:7001/ic/api/process/v1/", "rel": "parent" } ] }