Get suggestions from translation memory
POST/v2/projects/:projectId/suggest/translation-memory
Suggests machine translations from translation memory. The result is always sorted by similarity, so sorting is not supported.
Request
Path Parameters
Query Parameters
Default value: 0
Zero-based page index (0..N)
Possible values: >= 1
Default value: 20
The size of the page to be returned
Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
- application/json
Body
required
Key Id to get results for. Use when key is stored already.
Text value of base translation. Useful, when base translation is not stored yet.
Whether base text is plural. This value is ignored if baseText is null.
Possible values: [GOOGLE
, AWS
, DEEPL
, AZURE
, BAIDU
, TOLGEE
]
List of services to use. If null, then all enabled services are used.
Responses
- 200
- 400
- 401
- 403
- 404
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
_embedded object
translationMemoryItems object[]
page object
{
"_embedded": {
"translationMemoryItems": [
{
"targetText": "string",
"baseText": "string",
"keyName": "string",
"similarity": 0
}
]
},
"page": {
"size": 0,
"totalElements": 0,
"totalPages": 0,
"number": 0
}
}
Bad Request
- */*
- Schema
Schema
string
Unauthorized
- */*
- Schema
Schema
string
Forbidden
- */*
- Schema
Schema
string
Not Found
- */*
- Schema
Schema
string