Skip to main content
Import enumeration records

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Path Parameters

name
string
required

Name of the enumeration definition, unique within the tenant and used as its identifier wherever the enumeration is referenced.

Required string length: 1 - 100
Pattern: ^[a-z0-9_]+$
Example:

"priorities"

Body

application/json
dataDelimiter
string

Character separating the columns of a CSV file. Ignored for JSON.

Example:

","

escapeChar
string

Character that escapes a quote inside a quoted CSV field. Ignored for JSON.

Example:

"\""

fileEncoding
string

Character encoding the file is written in. Wrong encoding shows up as mangled accented characters rather than as an error.

Example:

"utf8"

fileHash
string | null

Hash of the file to read, as returned when the file was uploaded.

Minimum string length: 1
Pattern: ^[a-z0-9]+$
Example:

"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"

mapping
object

Translation from the field names the file uses to the property names of the imported records - key is the name in the file, value the target property. Needed only where the two differ; run the matching preview endpoint to see what the file actually carries.

Example:

Response

Returns how many records were written and how many were refused.

failed
number

How many records of the file were refused, most often because they duplicate the unique values of a record already stored.

Example:

0

succesfull
number

How many records of the file were stored. Zero when the file held no rows at all.

Example:

42