POST
/
v1
/
data-files
/
{dataFile}
/
import
cURL
curl --request POST \
  --url https://api.comm.com/api/v1/data-files/{dataFile}/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "fixed_country_id": 123,
  "fixed_network_brand": "<string>",
  "columns": {
    "number": 1,
    "country": 1,
    "email": 1,
    "name": 1,
    "custom1_str": 1,
    "custom2_str": 1,
    "custom3_str": 1,
    "custom4_str": 1,
    "custom5_str": 1,
    "custom1_int": 1,
    "custom2_int": 1,
    "custom3_int": 1,
    "custom4_int": 1,
    "custom5_int": 1,
    "custom1_dec": 1,
    "custom2_dec": 1,
    "custom1_datetime": 1,
    "custom2_datetime": 1,
    "custom3_datetime": 1,
    "custom4_datetime": 1,
    "custom5_datetime": 1,
    "foreign_id": "<string>",
    "timezone": 1
  },
  "tags": [
    "<string>"
  ]
}'
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "size": 123,
    "status": "<string>",
    "created_at": "<string>",
    "created_ago": "<string>",
    "columns": "<string>",
    "total_rows": "<string>",
    "processed_rows": "<string>",
    "can_continue": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

dataFile
string<uuid>
required

The data file ID

Body

application/json

Response

200
application/json

DataFileResource

The response is of type object.