Run automatic context matching
Changed onAutomatically matches context against strings in the project and creates corresponding bindings. Optionally, you can restrict matching to only a set of strings that you specify to ensure that no unwanted bindings are created.
The following endpoint does not support video contexts pointing to Youtube or Vimeo videos.
Optical Character Recognition (OCR) is used for IMAGE and VIDEO contexts, while HTML context uses an approximate string matching algorithm.
This is a convenient method provided to save time and complexity in your integration. Although that our OCR functionality is advanced, it cannot match 100% of strings. If you need complete context coverage, use either Create string to context bindings endpoint to bind strings manually or check your image contexts in the Smartling Dashboard after running this request to fill in any blanks. Note that OCR quality may be lower if you are using an unusual or script-like font.
Applying this operation to a video context, keep in mind the original context will be removed and image contexts will be created instead for each frame that has one matched string at least. A string can't be bound to multiple frames simultaneously.
Request
- Base URLhttps://api.smartling.com
- AuthHTTP bearer
Path parameters
Unique identifier of a Smartling project — 9 lowercase alphanumeric characters.
A unique project identifier. This can be found in the Smartling Dashboard under Account Settings > API.
Unique identifier of a context
Request body
Example request
{
"contentFileUri": "/content/en/home.json",
"stringHashcodes": [
"d41d8cd98f00b204e9800998ecf8427e"
],
"translationJobUids": [
"j45v1uvsi3tx"
]
}Response
ACCEPTED
Example response
{
"response": {
"data": {
"processUid": "097ecbc2-8f1b-4ce5-b5c4-d48c3f0e5d9e"
}
}
}Changes
- breaking
added the pattern
^[a-z0-9]{9}$to thepathrequest parameterprojectId - breaking
added to the
request propertyallOflist - breaking
added the pattern
^[a-f0-9]{32}$to the request property/ - breaking
added the pattern
^[a-z0-9]{12}$to the request property/ - breaking
the
request property type changed fromstringto no type - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the
//response's property type changed fromstringto no type, and format fromuuidto no format for status - info
for the
pathrequest parameterprojectId, the format was generalized fromuuidto no format - info
the
/request property format was generalized fromhashto no format - info
the
/request property format was generalized fromhashto no format - info
added to the
//response propertyallOflist for the response status
- breaking
- info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
//to the response with the status - info
response property
response/data/matchIddeprecated
- info