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
- multipart/form-data
Path Parameters
-
id: string
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
-
file: file
Library metadata file content
Response
Supported Media Types
- application/json; charset=utf-8
200 Response
Successful operation
Root Schema : api-library
Type:
Show Source
object
-
allApis(optional):
array allApis
-
code(optional):
string
-
description(optional):
string
-
files(optional):
array source
-
filterByConfigType(optional):
string
-
functionsSize(optional):
integer(int32)
-
implFiles(optional):
array implFiles
-
implType(optional):
string
Allowed Values:
[ "JAVASCRIPT", "JAVA" ]
-
kids(optional):
array kids
-
name(optional):
string
-
searchByName(optional):
string
-
selectedFile(optional):
object APILibraryFile
-
type(optional):
string
-
version(optional):
string
Nested Schema : APILibraryFile
Type:
Show Source
object
-
apiCount(optional):
integer(int32)
-
apiIdList(optional):
array apiIdList
Unique Items Required:
true
-
currentFunc(optional):
string
-
duplicateFunctionsChecked(optional):
boolean
Default Value:
false
-
fileName(optional):
string
-
filterByConfigType(optional):
string
-
functionConfigured(optional):
boolean
Default Value:
false
-
functionList(optional):
array functionList
Unique Items Required:
true
-
functions(optional):
array api
-
kids(optional):
array kids
-
lastFunc(optional):
object API
-
libraryCode(optional):
string
-
libraryName(optional):
string
-
libraryVersion(optional):
string
-
name(optional):
string
-
path(optional):
string
-
searchByName(optional):
string
-
selectedFileName(optional):
string
-
selectedFunction(optional):
object API
-
type(optional):
string
Nested Schema : API
Type:
Show Source
object
-
annotationSet(optional):
boolean
Default Value:
false
-
apiId(optional):
string
-
classification(optional):
string
Allowed Values:
[ "ADAPTER", "ORCHESTRATION", "XPATH" ]
-
classified(optional):
boolean
Default Value:
false
-
configured(optional):
boolean
Default Value:
false
-
duplicateFnFlag(optional):
boolean
Default Value:
false
-
fileName(optional):
string
-
funcAnnotation(optional):
string
-
funcName(optional):
string
-
inputCompleted(optional):
boolean
Default Value:
false
-
inputs(optional):
array input
-
kids(optional):
array kids
-
libraryCode(optional):
string
-
libraryName(optional):
string
-
libraryVersion(optional):
string
-
multipleClassification(optional):
array classification
-
name(optional):
string
-
orchestrationClassified(optional):
boolean
Default Value:
false
-
outputCompleted(optional):
boolean
Default Value:
false
-
outputs(optional):
array output
-
parent(optional):
object API
-
status(optional):
string
-
type(optional):
string
-
unsupportedSyntax(optional):
boolean
Default Value:
false
-
unsupportedSyntaxType(optional):
string
-
xpathClassified(optional):
boolean
Default Value:
false
Nested Schema : classification
Type:
Show Source
array
-
Array of:
string
Allowed Values:
[ "ADAPTER", "ORCHESTRATION", "XPATH" ]
Nested Schema : File
Type:
Show Source
object
-
absolute(optional):
boolean
Default Value:
false
-
absoluteFile(optional):
object File
-
absolutePath(optional):
string
-
canonicalFile(optional):
object File
-
canonicalPath(optional):
string
-
directory(optional):
boolean
Default Value:
false
-
file(optional):
boolean
Default Value:
false
-
freeSpace(optional):
integer(int64)
- hidden(optional): boolean
-
name(optional):
string
-
parent(optional):
string
-
parentFile(optional):
object File
-
path(optional):
string
-
totalSpace(optional):
integer(int64)
-
usableSpace(optional):
integer(int64)
400 Response
Bad request, missing required data
404 Response
Library not found
500 Response
Server error
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