glossary_ids, style_id, and translation_memory_id with every request, you pass one style_profile_id. When the bundle changes, you update the profile, not your integration.
A style profile can link:
- Glossaries: any number, optionally with a priority order
- Style rule lists: at most one per target language
- Translation memories: at most one per source language
Create a style profile
SendPOST /v3/style_profiles a name and the IDs of the components to link. Only name is required, so you can also create an empty profile and link components later.
Example request
Example response
400 Bad Request and no profile is created. The error message names the list that contains the bad ID, for example Check 'glossary_ids'.
The glossaries, style rule lists, and translation memories you link don’t have to share a language pair. A profile can hold an English and a Japanese style rule list at the same time, and each one is used only for its own target language.
Translate with a style profile
Pass thestyle_profile_id in a /v2/translate or /v2/document request:
Example request
source_lang; language detection works as usual.
All model_type values are supported. Translation memories linked through a profile use the default matching threshold of 75.
Set the glossary priority
When two linked glossaries define the same source term, enableglossary_priority_order_enabled to make the order of glossary_ids decide: the first glossary that defines the term wins. Without it, the order has no effect.
Example request
Update a style profile
PATCH /v3/style_profiles/{style_profile_id} changes only the fields you send. Each component list you send replaces the linked list in full, so to add a glossary to a profile that already links two, send all three IDs. An empty list unlinks every component of that kind:
Example request
GET /v3/style_profiles or GET /v3/style_profiles/{style_profile_id}. DELETE /v3/style_profiles/{style_profile_id} removes the profile but leaves its components in place. Translation requests that still pass the deleted ID fail, so update your integration before deleting.
Limits
- A style profile links at most one style rule list per target language and one translation memory per source language. Sending two for the same language is rejected with
400 Bad Request - The number of style profiles per account depends on your plan. Creating one above the limit is rejected with
456 nameandindustryare limited to 255 characters,descriptionto 1000