v1

latestOpenAPI 3.0.3LILT Platform Terms and Conditions2026-07-26651658.7 KB
Segments

Update a Segment

Update a Segment in memory. The Memory will be updated with the new target string.

put/v2/segments

Request body

idinteger required

A unique Segment identifier.

targetstring required

The target string.

Example request

{
  "id": 84480010,
  "target": "Enable debug code"
}

Response

A Segment object.

idinteger

A unique number identifying the Segment.

created_atinteger

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

updated_atinteger

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

document_idinteger

A unique Document identifier.

memory_idinteger

The Memory with which this Segment is associated.

sourcestring

The source string.

srclangstring

An ISO 639-1 language code.

targetstring

The target string.

trglangstring

An ISO 639-1 language code.

is_confirmedboolean

The confirmation status.

is_reviewedboolean

The review status.

Example response

{
  "id": 84480010,
  "created_at": 1489147692,
  "updated_at": 1489147692,
  "document_id": 1234,
  "memory_id": 5678,
  "source": "The red bus.",
  "srclang": "en",
  "target": "Le bus rouge.",
  "trglang": "fr",
  "is_confirmed": true,
  "is_reviewed": true
}