Storage

Upload data used by active jobs

First you need to upload your data to be used by others jobs like JobHashBySegment or JobHashByPartnerId

Upload content-type

Two kind of file can be imported :

  • CSV (text/csv)

  • NEWLINE JSON (application/json)

Use the appropriate header content-type to indicate the format to the web service. Upload via multipart must be in CSV format, file parameter must be named file

post
Upload audience

https://partner-api.sddan.com/api/v1/public/data/job/store/{storeType}
Request
Response
Request
Path Parameters
location
required
string
Always indicate EU, US is deprecated
Headers
description
optional
string
Name your upload
column-names
optional
string
Use to upload more column than standard format, separated by comma. Ordering must be respected.
authorization
required
string
Auth token
Response
200: OK
{
"job": {
"id": "-Lv53dEJwF6L_XXXXXXX",
"partner_id": 1000,
"type": "JobTypeStorage",
"creation_timestamp": "2019-12-02T11:05:36.596323559+01:00",
"status": "CREATED",
"start": "2019-12-02T11:06:27.629232049+01:00",
"end": "2019-12-02T11:08:41.069095528+01:00"
},
"result": {
"count": 15378113,
"download_url": "/api/v1/public/data/job/-Lv53dEJwF6L_XXXXXXX/download/sirdata_job_result_-Lv53dEJwF6L_XXXXXXX",
"bucket_name": "sirdata-partner-user-api",
"filename": "sirdata_job_result_-Lv53dEJwF6L_XXXXXXX_request.json",
"table_id": "job_4e3c557d8d0db592d552eaf2XXXXXX",
"downloads": null,
"dataset_id": "partner_user_api"
},
"request": {
"description": "",
"bucket_name": "sirdata-partner-user-api",
"filename": "sirdata_job_result_-Lv53dEJwF6L_XXXXXXX_request.json",
"type": "key-value",
"content_type": "NEWLINE_DELIMITED_JSON",
"location": "EU"
}
}
400: Bad Request