PUT
/
v2
/
segments
Update a Segment
curl --request PUT \
  --url https://api.lilt.com/v2/segments \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 84480010,
  "target": "Enable debug code"
}'
{
  "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
}

Authorizations

key
string
query
required

Body

application/json

The Segment resource to update.

The body is of type object.

Response

200
application/json

A Segment object.

A Segment is a source string and, optionally, its translation. A Segment can be associated with both a Memory and a Document. The Segment object contains additional metadata about the source and target strings.