Import/Register a Library



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


Supported Media Types
Form Parameters


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


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