File import for a Memory
Changed onImports 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
Request
- Base URLhttps://api.lilt.com
- URLhttps://api.lilt.com/v2/memories/import
- AuthHTTP basic
Headers
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).
Request body application/octet-stream
Response
A status object.
Example response
{
"id": 123,
"isProcessing": 1
}Changes
- breaking
added the new required
headerrequest parametermemory_id - breaking
added the new required
headerrequest parametername - breaking
added required request body
- info
api operation id
importMemoryFilewas added - info
added the new optional
headerrequest parameterhas_header_row - info
added the new optional
headerrequest parametersdlxliff_filters - info
added the new optional
headerrequest parameterskip_duplicates - info
added the non-success response with the status
- info
added the success response with the status
- breaking