Import/Register a Library

post

/icsapis/v2/libraries/archive

Imports JAR file and registers as a library. If you are using cURL, use the -F option to specify the file to import.

Request

Supported Media Types
Form Parameters

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : library
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : library
Type: object
Show Source

204 Response

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

400 Response

Malformed request parameters

409 Response

Library already exists

500 Response

Server error

Examples

The following example shows how to register 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.

curl -X POST 
http://integration.us.oraclecloud.com/icsapis/v2/libraries/archive 
-U jstein:welcome1 
-H 'content-type: multipart/form-data; 
-F name=add5 
-F version=01.00.0000 
-F 'description=library to concat two strings'
-F file=@TestJS3_1.0.jar