API Update Memory Content
API Documentation homeQuick Example
curl -X PUT \
-H "MMT-ApiKey: <your_api_key>" \
-d "source=en" \
-d "target=it" \
-d "sentence=Hi Mike!" \
-d "translation=Ciao Mike!" \
-d "old_sentence=Hello Mike!" \
-d "old_translation=Salve Michele!" \
https://api.modernmt.com/memories/5/content \
| python -mjson.tool
{
"data": {
"begin": 16,
"dataChannel": 1,
"end": 16,
"id": "80000001-0000-0000-0000-000000000010",
"memory": 0,
"progress": 0,
"size": 1
},
"status": 200
}
Description
This method updates a past contribution in a Memory.
The target Memory does not have to be linked to the current User.
If the same contribution was added multiple times, all of its instances in the Memory will be updated.
Resource URL
https://api.modernmt.com/memories/:id/content
Parameters
Name | Description |
---|---|
source |
The source language of the contribution to update, in the form of a language tag.
Example: en |
target |
The target language of the contribution to update, in the form of a language tag.
Example: it |
sentence |
The source part of the contribution to write over the old contribution.
Example: Hello Mike! |
translation |
The target part of the contribution to write over the old contribution
Example: Ciao Mike! |
old_sentence |
The source part of the old contribution to update.
Example: Hello Mike! |
old_translation |
The target part of the old contribution to update.
Example: Salve Michele! |
Response Fields
The response object is an ImportJob, for more details please have a look at the API Get Import Job documentation.