Authorizations
Body
The Segment resource to create.
To add a Segment to a Memory, include the memory_id
and target
parameters.
To add a Segment to a Document, include the document_id
and the source
parameters.
The target
parameter is optional.
The source string.
"Code zur Fehleranalyse einschalten"
A unique Memory identifier.
10641
A unique Document identifier.
1876
The target string.
"Enable debugging code"
A flag for whether this segment should be broken down into smaller segments. If this is true then the response is an array of segments.
A two letter language code for the source language. Required if shouldApplySegmentation
is enabled.
"fr"
Response
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.
A unique number identifying the Segment.
84480010
Time at which the object was created. Measured in seconds since the Unix epoch.
1489147692
Time at which the object was created. Measured in seconds since the Unix epoch.
1489147692
A unique Document identifier.
1234
The Memory with which this Segment is associated.
5678
The source string.
"The red bus."
An ISO 639-1 language code.
"en"
The target string.
"Le bus rouge."
An ISO 639-1 language code.
"fr"
The confirmation status.
true
The review status.
true