Imports common translation memory or termbase file formats to a specific LILT memory. Currently supported file formats are *.tmx
, *.sdltm
, *.sdlxliff
(With custom Filters), ‘*.xliff’, and *.tmq
for TM data; *.csv
and *.tbx
for termbase data. Request parameters should be passed as JSON object with the header field LILT-API
.
Example CURL command to upload a translation memory file named my_memory.sdltm
in the current working directory:
curl -X POST https://api.lilt.com/v2/memories/import?key=API_KEY \
--header "LILT-API: {\"name\": \"my_memory.sdltm\",\"memory_id\": 42}" \
--header "Content-Type: application/octet-stream" \
--data-binary @my_memory.sdltm
Example CURL command to upload a translation memory file named my_memory.sdlxliff
in the current working directory, with Custom Filters based on SDLXLIFF fields, conf_name which maps to, percentage, and whether we should ignore unlocked segments.
curl -X POST https://api.lilt.com/v2/memories/import?key=API_KEY \
--header "LILT-API: {\"name\": \"my_memory.sdlxliff\",\"memory_id\": 12,\"sdlxliff_filters\":[{\"conf_name\": \"Translated\", \"percentage\": 100, \"allow_unlocked\": false}]"}" \
--header "Content-Type: application/octet-stream" \
--data-binary @my_memory.sdlxliff
A unique Memory identifier.
Name of the TM or termbase file.
Contains Filter information Unique to SDLXLIFF
A flag indicating whether an imported Termbase CSV has a header row or not (the default value is false
).
A flag indicating whether or not to skip the import of segments
which already exist in the memory. (the default value is false
).
The file contents to be uploaded. The entire POST body will be treated as the file.
The body is of type file
.
A status object.
The response is of type object
.