Upload file data for Segment
POST
http
://api.ants.tech/access/api/segment/upload/:itemTypeId
Request
Params
itemTypeId
: Type to define the Customer segment or Visitor segment (-1003
for Customer segment, -1007
for Visitor segment)file
: Form file to upload
Headers
Authorization*
Bearer <ACCESS_TOKEN>
Response
filePath
: File storage path, used for Create Segment APIfileName
: Metadata of the file, used for Create Segment APIextension
: Metadata of the file, used for Create Segment APIdelimiter
: Metadata of the file, used for Create Segment APIdelimiterCode
: Metadata of the file, used for Create Segment APIheaderFiles
: Array containing the file header code and index, used for mapping with BO attributes that need to be uploaded when Creating SegmentheaderCode
: Header of the fileheaderIndex
: Order ofheaderCode
{
"code": 200,
"message": "Success",
"data": {
"entries": [
{
"filePath": "/S3/cdp-import-export/import/segment/33167",
"fileName": "-1003_1600083836_1707120681099.csv",
"extension": "csv",
"delimiter": "\t",
"delimiterCode": "tab",
"headerFiles": [
{
"headerCode": "id",
"headerIndex": 0
},
{
"headerCode": "created_date",
"headerIndex": 1
},
{
"headerCode": "from_user",
"headerIndex": 2
},
{
"headerCode": "to_user",
"headerIndex": 3
},
{
"headerCode": "user_id",
"headerIndex": 4
},
{
"headerCode": "message",
"headerIndex": 5
},
{
"headerCode": "page_id",
"headerIndex": 6
},
{
"headerCode": "page_name",
"headerIndex": 7
}
]
}
],
"meta": {
"total": 1
}
},
"codeMessage": null,
"duration": "1.507 ms"
}
Last updated