curl --request POST \
--url https://apiweb.mile.app/api/v3/data/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": [
{
"dataId": "Outlet",
"dataTypeId": "63db2fb476bc679c540369c4",
"hubId": "63c63ab1b6972d3150348172",
"field1": "Jack Ward",
"field2": "Gambir Jakarta",
"field3": "-6.230815251,106.75684387"
},
{
"dataId": "Cafe",
"dataTypeId": "63db2fb476bc679c540369c4",
"hubId": "63c63ab1b6972d3150348172",
"field1": "Jack Ward",
"field2": "Menteng Jakarta",
"field3": "-6.1951689,106.8278573"
}
]
}
'{
"success": 2,
"failed": 0,
"data": [
{
"status": true,
"message": "Success.",
"_id": "646db91d0d73b6392543fb82"
},
{
"status": true,
"message": "Success.",
"_id": "646db91d0d73b6392543fb83"
}
]
}curl --request POST \
--url https://apiweb.mile.app/api/v3/data/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": [
{
"dataId": "Outlet",
"dataTypeId": "63db2fb476bc679c540369c4",
"hubId": "63c63ab1b6972d3150348172",
"field1": "Jack Ward",
"field2": "Gambir Jakarta",
"field3": "-6.230815251,106.75684387"
},
{
"dataId": "Cafe",
"dataTypeId": "63db2fb476bc679c540369c4",
"hubId": "63c63ab1b6972d3150348172",
"field1": "Jack Ward",
"field2": "Menteng Jakarta",
"field3": "-6.1951689,106.8278573"
}
]
}
'{
"success": 2,
"failed": 0,
"data": [
{
"status": true,
"message": "Success.",
"_id": "646db91d0d73b6392543fb82"
},
{
"status": true,
"message": "Success.",
"_id": "646db91d0d73b6392543fb83"
}
]
}Use a valid Bearer token to authenticate.
The maximum data for creating multiple data source is 2000 data.
Show child attributes
The identifier of fields from data type.
Example: Outlet
The identifier of data type. Use GET /data-types API to get the list of Data Type IDs.
Example: 63db2fb476bc679c540369c4
Fundamental entity within an organization, serving as the central point for managing various operational components. Use GET /hubs endpoint to get the list of Hub IDs. Example: 634e98498ce07d29474a7e29
This field's type & value is according to dataType. Use GET /data-types API to get fields of dataType.
Example: Jack Ward
This field's type & value is according to dataType. Use GET /data-types API to get fields of dataType.
Example: Gambir Jakarta
This field's type & value is according to dataType. Use GET /data-types API to get fields of dataType.
Example: -6.230815251,106.75684387
Success