Skip to content

ADAS05 - Upload segment population file

Request

Description

Upload a CSV or GZIP file containing the segment population data. The maximum file size is 1GB. Use multipart/form-data with name file.
Csv format:

"user-key"

Bodymultipart/form-data
filestring, (binary)required

File to upload (CSV or GZIP format). Maximum file size is 1GB.

curl -i -X POST \
  https://your-service.mirakl.net/api/v1/audiences/segments/population/files \
  -H 'Content-Type: multipart/form-data' \
  -F 'file=@path/to/file'

Responses

OK

Bodyapplication/json
idstringrequired

The unique identifier of the file

sha1stringrequired

The sha1 attribute allows verification of the integrity of the transmitted file (hash of the received file using the SHA-1 algorithm)

Response
{ "id": "b139babd-3b73-479e-8b46-8afd23dc3805", "sha1": "354df36420f41ecc64b1816e3730ccc8c7d6e444" }