- Reference 360 SaaS
- All Products
POST https://use4-mdm.dm-us.informaticacloud.com/rdm-service/external/v1/import HTTP/1.1 Content-Type: multipart/form-data; boundary=6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm IDS-SESSION-ID: XXXXXXXXXXXXXXXXXXXXXX --6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm Content-Disposition: form-data; name=file; filename=import-code-values.csv --6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm Content-Disposition: form-data; name=importSettings Content-Type: application/json;charset=UTF-8 { "delimiter":"COMMA", "textQualifier":"DOUBLE_QUOTE", "codepage":"UTF8", "dateFormat":"ISO", "containerType":"CODELIST", "containerId":"9ab3201990a54dcdc86f54cf", "startingRow":null } --6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm--
Name,Code Name,Code Afghanistan,AFG Aland Islands,ALA Albania,ALB Algeria,DZA American Samoa,ASM
{ "jobId":"dd1b2018cb47cef99f8d0f42", "state":"INPROGRESS", "startTime":1561367377428, "numOfRecordsProcessed":100, "numOfRecordsFailed":25, "numOfRecordsSucceeded":75 }
GET https://use4-mdm.dm-us.informaticacloud.com/rdm-service/external/v1/import/job/dd1b2018cb47cef99f8d0f42 HTTP/1.1 IDS-SESSION-ID: XXXXXXXXXXXXXXXXXXXXXX
HTTP/1.1 200 OK Content-Type: application/json;charset=UTF-8 Content-Length: 193 { "jobId":"dd1b2018cb47cef99f8d0f42", "state":"INPROGRESS", "startTime":1561367376330, "numOfRecordsProcessed":100, "numOfRecordsFailed":25, "numOfRecordsSucceeded":75 }
GET https://use4-mdm.dm-us.informaticacloud.com/rdm-service/external/v1/import/job/dd1b2018cb47cef99f8d0f42/errorDetails HTTP/1.1 IDS-SESSION-ID: XXXXXXXXXXXXXXXXXXXXXX
HTTP/1.1 200 OK Content-Type: application/json;charset=UTF-8 Content-Length: 354 { "jobId":"dd1b2018cb47cef99f8d0f42", "entityType":"Relationship", "fileName":"import.csv", "entityName":"rdm.crosswalk.rel.21ffd6b5f92d10c744acc27c.fc66c441288cf898c6fe5023", "errorDetails":[ { "lineNumber":1, "entitySourcePkey":"AF_AFG", "reasons":[ "The requested resource with ID 'AFG' does not exist." ] } ] }
I assume starting from "--6o2knFse3p53ty9dmcQvWAIx1zInP11uCfbm" the entire content has be passed as a payload, correct?
Also, can you please let me know where should we keep the file which is mentioned in the payload as "filename=import-code-values.csv" ?
Hi Arindam,
We’re working to address your comments and will get back to you.
Thanks,
Informatica Documentation team
Hi Arindam,
The content type is multipart/form data and the key value pair within the specified boundary has to be entered in separate rows in the request body.
As per the example, for the importSettings key, you can enter the code within the curly brackets {} as its value. For the file key, you can browse and select the import-code-values.csv file. You can store the CSV file on your local machine.
Thanks,
Informatica Documentation team