End point: [RemoteTM URL]/memories
Send a POST request with these headers:
Include these parameters in a JSON body:
command |
exportMemory |
memory |
ID of the memory to export |
srcLang |
The code of the language to set as source or '*all*' if any language is to
be treated as source language |
close |
Boolean value indicating wether the memory should be closed after exporting. |
Example:
{
"command": "exportMemory",
"memory": "1617053861912",
"srcLang": "*all*",
"close": false
}
RemoteTM responds with a JSON object.
On success, field 'status' is set to 'OK' and the location of the exported file is
returned on
the 'file' field. Example:
{
"status": "OK",
"file": "exportedFile.tmx"
}
On error, field 'status' is set to 'Error' and field 'reason' contains the error cause.
Example:
{
"status": "Error",
"reason": "Access denied"
}
After the memory has been exported to the server filesystem, send a
file download request to RemoteTM.