Update a Library

post

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

Replace the existing jar/js file.

Request

Path Parameters
  • Library identifier. The id must be added to the request in the following form: code%7Cversion. For example: JSLIB%7C01.00.0000. The %7C is the encoded | (vertical line).
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 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

Request:

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/libraries/JSLIB%7C01.00.0000/archive?integrationInstance=service-instance

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).

Back to Top