POST
/
v2
/
memories
Create a Memory
curl --request POST \
  --url https://api.lilt.com/v2/memories \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "automotive",
  "srclang": "en",
  "trglang": "fr",
  "srclocale": "US",
  "trglocale": "FR"
}'
{
  "id": 1234,
  "srclang": "en",
  "trglang": "fr",
  "srclocale": "US",
  "trglocale": "FR",
  "name": "Acme Corp Support Content",
  "is_processing": false,
  "version": 78,
  "created_at": 1489147692,
  "updated_at": 1489147692,
  "resources": [
    "<string>"
  ]
}

Authorizations

key
string
query
required

Body

application/json

The Memory resource to create.

name
string
required

A name for the Memory.

Example:

"automotive"

srclang
string
required

An ISO 639-1 language identifier.

Example:

"en"

trglang
string
required

An ISO 639-1 language identifier.

Example:

"fr"

srclocale
string

An ISO 3166-1 region name for language locales

Example:

"US"

trglocale
string

An ISO 3166-1 region name for language locales

Example:

"FR"

Response

A Memory object.

A Memory is a collection of parallel (source/target) segments from which a MT/TM model is trained. When a translator confirms a segment in the Interface, a parallel segment is added to the Memory. Parallel segments from existing translation memories and bitexts can also be added to the Memory via the API.

id
integer

A unique number identifying the Memory.

Example:

1234

srclang
string

An ISO 639-1 language identifier.

Example:

"en"

trglang
string

An ISO 639-1 language identifier.

Example:

"fr"

srclocale
string

An ISO 639-1 language identifier.

Example:

"US"

trglocale
string

An ISO 639-1 language identifier.

Example:

"FR"

name
string

A name for the Memory.

Example:

"Acme Corp Support Content"

is_processing
boolean

Indicates the memory is being processed.

Example:

false

version
integer

The current version of the Memory, which is the number of updates since the memory was created.

Example:

78

created_at
integer

Time at which the object was created. Measured in seconds since the Unix epoch.

Example:

1489147692

updated_at
integer

Time at which the object was created. Measured in seconds since the Unix epoch.

Example:

1489147692

resources
string[]

The resource files (translation memories and termbases) associated with this Memory.