Search All Translations

End point: [RemoteTM URL]/memories
Send a POST request with these headers:
Header Value
Session  The ticket received from Authorization Request
Content-Type application/json
Include these parameters in a JSON body:
Parameter Value
command searchAll
memory  ID of the memory to query
searchStr  Text to search
srcLang  Source language code
similarity  Minimum similarity percentage
caseSensitive  Boolean value indicating whether the search should be case sensitive
Example:
{
    "command": "searchAll",
    "memory": "1619955225759",
    "searchStr": "Get source code",
    "srcLang": "en",
    "similarity": 60,
    "caseSensitive": false
}
RemoteTM responds with a JSON object.
On success, field 'status' is set to 'OK' and search results are included in 'tus' field, escaped for JSON notation. Example:
{"tus":[
    "<tu tuid=\"467840381-10-12-12\">
      <prop type=\"customer\">Maxprograms<\/prop>
      <prop type=\"project\">swordfish.ditamap<\/prop>
      <tuv xml:lang=\"en\"><seg>Source Code<\/seg><\/tuv>
      <tuv xml:lang=\"pt\"><seg>Código fonte<\/seg><\/tuv>
     <\/tu>",
    "<tu creationtool=\"Swordfish\" tuid=\"1668707130-10-12-12\" >
      <prop type=\"project\">swordfish.ditamap<\/prop>
      <tuv xml:lang=\"en\"><seg>Source Code<\/seg><\/tuv>
      <tuv xml:lang=\"es\"><seg>Código Fuente<\/seg><\/tuv>
     <\/tu>"],
    "status":"OK"
}
On error, field 'status' is set to 'Error' and field 'reason' contains the error cause. Example:
{
    "status": "Error",
    "reason": "Access denied"
}