Import Library Metadata

post

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

Imports the metadata XML file for the library with the specified ID. If you are using cURL, use the -F option to specify the file to import.

Request

Supported Media Types
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).
Form Parameters
Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : api-library
Type: object
Show Source
Nested Schema : allApis
Type: array
Show Source
Nested Schema : source
Type: array
Show Source
Nested Schema : implFiles
Type: array
Show Source
Nested Schema : kids
Type: array
Show Source
Nested Schema : APILibraryFile
Type: object
Show Source
Nested Schema : API
Type: object
Show Source
Nested Schema : input
Type: array
Show Source
Nested Schema : kids
Type: array
Show Source
Nested Schema : classification
Type: array
Show Source
Nested Schema : output
Type: array
Show Source
Nested Schema : APIParam
Type: object
Show Source
Nested Schema : INode
Type: object
Show Source
Nested Schema : kids
Type: array
Show Source
Nested Schema : File
Type: object
Show Source
Nested Schema : apiIdList
Type: array
Unique Items Required: true
Show Source
Nested Schema : functionList
Type: array
Unique Items Required: true
Show Source
Nested Schema : api
Type: array
Show Source
Nested Schema : kids
Type: array
Show Source

400 Response

Bad request, missing required data

404 Response

Library not found

500 Response

Server error
Back to Top

Examples

The following example shows how to import the JavaScript library metadata XML file 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: Import metadata for the library JSLIB|01.00.0000

The id is in the form: code%7Cversion. The %7C is the encoded | (vertical line).

curl -X POST -H 'Authorization: Bearer access_token' -H "Content-Type:multipart/form-data" -F "file=@JSFILE_01.00.0000.xml" https://integration.us.oraclecloud.com/ic/api/integration/v1/libraries/JSLIB%7C01.00.0000/metadata
Back to Top