You are here:
Post Data
Post JSON data to an Omnistudio Data Mapper.
POST /v2/DataRaptor/Package
-
Communication (vlocity_cmt)
-
Vlocity Health (vlocity_ins)
-
Insurance (vlocity_ins)
-
Government (vlocity_ps)
Parameters
Parameter | Description | Optional | Example |
|---|---|---|---|
bundleName |
Data Mapper bundle name |
Required |
|
objectList |
JSON object data to process |
Required |
|
filesMap |
Map of keys to base64 encoded files |
Optional |
See Example Request |
bulkUpload |
Indicates whether this should use Batch Apex. |
Optional |
|
Resource Information
Response Format | JSON |
|---|---|
Request URL |
/services/apexrest/{namespace}/v2/DataRaptor/ |
Example Request
POST
/services/apexrest/vlocity_cmt/v2/DataRaptor/
POST Data
{
"bundleName": "AccountUpload",
"objectList": {
"Agency Information": {
"Agency Name": "Vlocity",
"Agency Address": "50 Fremont",
"Agency City": "San Francisco",
"Agency State": "CA",
"Agency Zip": "94110"
}
},
"filesMap": {
"8ed0c4a1-1f41-47b9-ab97-b7f531babc2b": "data:text/javascript;base64,${BASE64STRING}"
},
"bulkUpload": false
}
Example Response
{
"createdObjectsByOrder": {
"Open Account": {
"1": [
"a10o00000022xVEAAY"
]
}
},
>"createdObjectsByType": {
"Open Account": {
"Account": [
"a10o00000022xVEAAY"
]
}
},
"errors": {},
"returnResultsData": []
}