Import the MFT metadata into the MFT MDS store

put

/mftapp/rest/v1/mftapp/rest/v1/applicationMetadata

Supports importing metadata along with optional config plan file which allows to override the attributes in the metadata files.

Request

Supported Media Types
Query Parameters
Body ()
A body of type:
  • multipart/form-data
Root Schema : schema

Response

Supported Media Types

200 Response

Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : configPlanOverrideResultSummmary
Type: array
Show Source
Nested Schema : failedTransfers
Type: array
Show Source
Nested Schema : skippedTransfers
Type: array
Show Source
Nested Schema : items
Type: object
Show Source

500 Response

Body ()
Root Schema : Error information.
Type: object
Title: Error information.
Show Source
Example Response (application/json)
{
    "errorCode":"MFT-2351",
    "errorKey":"MFT_IMPORT_ERROR",
    "errorMessage":"Error occurred while importing the metadata."
}

Examples

Example of cURL command to import metadata from a remote machine

The API mftapp-rest-v1-applicationMetadata-put supports importing metadata from a remote server.

The following cURL command shows the import command:

curl -X PUT 
-H "Content-Type: multipart/form-data" 
-F "archive=@export.zip" 
-F "configPlan=@mftConfig.xml"
http://example.com:5000/mftapp/rest/v1/applicationMetadata  
-u username:password
	
Run the above mentioned cURL command from folder where export.zip exists, else provide complete path for example, /scratch/export.zip.

It is recommended that you use MFT console or MFT REST API for export/import of files.