Update specific phrase

POST: /tm/context/<context_uuid>/phrase/<phrase_key>
Request params
ParametersDescription
secret_key
public_key
Response params
ParametersDescription
source_texttext to be translated in phrase
uuidA unique UUID for this phrase, generated by TM
contextThe context that the phrase related to.
targetArray of target texts per target language. see example below
remarkstext that clarifies phrase and given by user
flagsnull (currently not in use)
source_languageslug name of phrase's source language , e.g english see Language Codes
phrase_keyphrase key generated by TM or may be given by user

Request Example

curl --request POST "https://www.onehourtranslation.com/api/2/tm/context/c-3d2f0d91bbdd/phrase/ab8f37d89b1154ba18c78a7e4b8eef2acdfec1eb" --data "secret_key=<secret_key>&public_key=<public_key>&source_text=test phrase&target_language=nl-nl&target_text=test-zin"

Response Example

{
 "status":
  {
   "code":0,
   "msg":"ok"
  },
 "results":
  {
   "status":0,
   "errors":[],
   "results":
    {
     "source_text":"test phrase",
     "uuid":"p-b66244a0d38f",
     "context":"c-3d2f0d91bbdd",
     "target":
      {
       "spanish":["frase de prueba"],
       "dutch":["test-zin"]
      },
     "remarks":"",
     "source_language":"english",
     "invalid":[],
     "phrase_key":"ab8f37d89b1154ba18c78a7e4b8eef2acdfec1eb"
    }
   },
  "errors":[]
}