POST: /tm/context/<context_uuid>/phrases
Request params
Parameters | Descripción |
---|---|
secret_key | |
public_key |
Response params
Parameters | Descripción |
---|---|
source_text | text given by user to be saved in a specific context |
uuid | A unique UUID for this phrase, generated by TM |
context | The context that the phrase related to. |
target | Array of target texts per target language. see example below |
remarks | remarks given by user in phrase creation |
flags | null (not in use) |
source_language | slug name of phrase's source language. See Language Codes |
phrase_key | phrase key generated by TM or may be given by user |
Request Example
curl --request POST "https://www.onehourtranslation.com/api/2/tm/context/c-ffcf19dbf525/phrases" --data "secret_key=<secret_key>&public_key=<public_key>&source_language=en-us&source_text=test phrase"
Response Example
{
"status":
{
"code":0,
"msg":"ok"
},
"results":
{
"acl":
{
"public_write":0,
"public_read":0
},
"uuid":"c-ec9833683f7f",
"parent":"",
"name":""
},
"errors":[]
}