Update a Library in a Project

post

/ic/api/integration/v1/projects/{projectId}/libraries/{id}/archive

Replaces the existing jar or js file of a library in a project.

Request

Path Parameters
Query Parameters
Supported Media Types
Request Body - multipart/form-data ()
Root Schema : schema
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : LibraryRs
Type: object
Show Source
Nested Schema : items
Type: array
List of Libraries
Show Source
Nested Schema : LibraryTypeRs
Type: object
Show Source

204 Response

Successful operation, no content sent, the Location header provides the newly created library uri

400 Response

Malformed parameters

409 Response

Library already exists

500 Response

Server error
Back to Top

Examples

The following example shows how to replace jar/js file of a library in a project by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL. For more information about endpoint URL structure, see Send Requests.

Example: Update a Library in the project TEST_PROJECT

This example replaces the js file for the library JSLIB|01.00.0000. The id is code%7Cversion and the %7C is the encoded | (vertical line).

curl -X POST -H 'Authorization: Bearer access_token' -H "Content-Type:multipart/form-data" -F "file=@concat.js" https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/projects/TEST_PROJECT/libraries/JSLIB%7C01.00.0000/archive?integrationInstance=service-instance
Back to Top