From a39f4fde40c52ffcfd80e305be9c457254c81b7f Mon Sep 17 00:00:00 2001 From: Maxim Brunnmeier Date: Mon, 14 Sep 2026 14:19:39 +0200 Subject: [PATCH 1/3] docs: add the customizations object to POST /v2/translate One JSON object carries glossaries, a style rule list, custom instructions, a translation memory with its threshold, and example documents. Documents which parameters it excludes, the JSON-only restriction, and the error responses for conflicts, thresholds outside 50 to 100, and unknown example documents. --- api-reference/openapi.json | 61 ++++++++++++++++++++++++++++++ api-reference/openapi.yaml | 75 +++++++++++++++++++++++++++++++++++++ docs/customize/overview.mdx | 2 + 3 files changed, 138 insertions(+) diff --git a/api-reference/openapi.json b/api-reference/openapi.json index 5e9c161b..143a6873 100644 --- a/api-reference/openapi.json +++ b/api-reference/openapi.json @@ -1116,6 +1116,67 @@ "format": "uuid", "example": "3f1c9d0e-7a24-4b58-9c31-8f0e5d2a1b47" }, + "customizations": { + "description": "All customizations of the request in one object: glossaries, a style rule list, custom\ninstructions, a translation memory and example documents. For new integrations we recommend\nthis object over the individual customization parameters. Each field behaves like the\nparameter it corresponds to.\n\nCannot be used together with `glossary_id`, `glossary_ids`, `style_id`, `translation_memory_id`,\n`translation_memory_threshold` or `custom_instructions`. A request that combines them is rejected\nwith `400 Bad Request` naming the conflicting parameter. Accepted in JSON request bodies only.\n\nAvailable for accounts that have it enabled. Contact your DeepL representative to request access.", + "type": "object", + "properties": { + "glossary_ids": { + "description": "Up to 5 glossaries to use for the translation, in the order they should be applied. Corresponds to\n`glossary_ids`: requires `source_lang`, and every listed glossary must contain a dictionary for the\nrequested language pair.", + "type": "array", + "items": { + "type": "string", + "format": "uuid", + "example": "def3a26b-3e84-45b3-84ae-0c0aaf3525f7" + } + }, + "style_rule_id": { + "description": "The [style rule list](/docs/customize/using-style-rules) to use for the translation. Corresponds to\n`style_id`: the target language has to match the language of the style rule list.", + "type": "string", + "format": "uuid", + "example": "7ff9bfd6-cd85-4190-8503-d6215a321519" + }, + "custom_instructions": { + "description": "Up to 10 instructions of at most 300 characters each. Corresponds to `custom_instructions`,\nincluding its target language restriction.", + "type": "array", + "items": { + "type": "string", + "example": "Use a friendly, diplomatic tone" + } + }, + "translation_memories": { + "description": "The translation memory to use for the translation, with an optional matching threshold. Corresponds\nto `translation_memory_id` and `translation_memory_threshold`. Currently one entry is supported;\na request with more is rejected with `400 Bad Request`.", + "type": "array", + "items": { + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "$ref": "#/components/schemas/TranslationMemoryId" + }, + "threshold": { + "description": "The minimum matching percentage required for a translation memory segment to be applied,\nbetween 50 and 100. Defaults to 75. A value outside this range is rejected with\n`400 Bad Request`.", + "type": "integer", + "minimum": 50, + "maximum": 100, + "default": 75, + "example": 75 + } + } + } + }, + "example_document_ids": { + "description": "Up to 10 example documents whose translations the model adapts to, in the order they should be\napplied. A document must be fully imported and written in the target language; a document that\ndoes not fit the request's language pair is left out. An ID your account cannot access is rejected\nwith `404 Not Found`.\n\nAvailable for accounts with example documents enabled.", + "type": "array", + "items": { + "type": "string", + "format": "uuid", + "example": "9e7b41c2-58da-4a03-b6f1-3c85e0d97a26" + } + } + } + }, "tag_handling": { "$ref": "#/components/schemas/TagHandlingOption" }, diff --git a/api-reference/openapi.yaml b/api-reference/openapi.yaml index db3e5b02..56138530 100644 --- a/api-reference/openapi.yaml +++ b/api-reference/openapi.yaml @@ -930,6 +930,81 @@ paths: type: string format: uuid example: 3f1c9d0e-7a24-4b58-9c31-8f0e5d2a1b47 + customizations: + description: |- + All customizations of the request in one object: glossaries, a style rule list, custom + instructions, a translation memory and example documents. For new integrations we recommend + this object over the individual customization parameters. Each field behaves like the + parameter it corresponds to. + + Cannot be used together with `glossary_id`, `glossary_ids`, `style_id`, `translation_memory_id`, + `translation_memory_threshold` or `custom_instructions`. A request that combines them is rejected + with `400 Bad Request` naming the conflicting parameter. Accepted in JSON request bodies only. + + Available for accounts that have it enabled. Contact your DeepL representative to request access. + type: object + properties: + glossary_ids: + description: |- + Up to 5 glossaries to use for the translation, in the order they should be applied. Corresponds to + `glossary_ids`: requires `source_lang`, and every listed glossary must contain a dictionary for the + requested language pair. + type: array + items: + type: string + format: uuid + example: def3a26b-3e84-45b3-84ae-0c0aaf3525f7 + style_rule_id: + description: |- + The [style rule list](/docs/customize/using-style-rules) to use for the translation. Corresponds to + `style_id`: the target language has to match the language of the style rule list. + type: string + format: uuid + example: 7ff9bfd6-cd85-4190-8503-d6215a321519 + custom_instructions: + description: |- + Up to 10 instructions of at most 300 characters each. Corresponds to `custom_instructions`, + including its target language restriction. + type: array + items: + type: string + example: "Use a friendly, diplomatic tone" + translation_memories: + description: |- + The translation memory to use for the translation, with an optional matching threshold. Corresponds + to `translation_memory_id` and `translation_memory_threshold`. Currently one entry is supported; + a request with more is rejected with `400 Bad Request`. + type: array + items: + type: object + required: + - id + properties: + id: + $ref: '#/components/schemas/TranslationMemoryId' + threshold: + description: |- + The minimum matching percentage required for a translation memory segment to be applied, + between 50 and 100. Defaults to 75. A value outside this range is rejected with + `400 Bad Request`. + type: integer + minimum: 50 + maximum: 100 + default: 75 + example: 75 + example_document_ids: + description: |- + Up to 10 example documents whose translations the model adapts to, in the order they should be + applied. A document must be fully imported and written in the target language; a document that + does not fit the request's language pair is left out. An ID your account cannot access is rejected + with `404 Not Found`. + + Available for accounts with example documents enabled. + type: array + items: + type: string + format: uuid + example: 9e7b41c2-58da-4a03-b6f1-3c85e0d97a26 tag_handling: $ref: '#/components/schemas/TagHandlingOption' tag_handling_version: diff --git a/docs/customize/overview.mdx b/docs/customize/overview.mdx index a6f79d03..722d3686 100644 --- a/docs/customize/overview.mdx +++ b/docs/customize/overview.mdx @@ -20,6 +20,8 @@ DeepL's customization features let you control terminology, style, and consisten Glossaries, style rules, custom instructions, and translation memories work with both [text translation](/docs/translate/translate-text-quickstart) and [document translation](/docs/translate/translate-documents-quickstart), support all `model_type` values, and can be combined in a single request. A style profile bundles glossaries, style rules, and translation memories under one ID for both text and document translation, and is used in place of the individual parameters. Spoken terms apply to [Voice API](/docs/voice/overview) sessions, where they can be combined with glossaries. +On the text translation endpoint you can also send all of them in one [`customizations` object](/api-reference/translate/request-translation#body-customizations) instead of the individual parameters. We recommend the object for new integrations. + Glossaries and style rules are unique to each of DeepL's global data centers and are not shared between them. Clients using [regional endpoints](/docs/getting-started/regional-endpoints) can't access glossaries or style rules created in the UI at this time. From 820d2656d02b568dbbc9f4c26835c7a0e0d27282 Mon Sep 17 00:00:00 2001 From: Nikolay Yashin Date: Thu, 26 Nov 2026 13:06:16 +0100 Subject: [PATCH 2/3] docs: update the customizations object to the current API behaviour MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - style_profile_id and customizations cannot be combined; both descriptions now say so. - glossary_ids no longer requires source_lang, matching the flat parameter since source language detection with glossaries. - Drop the access notes: the object and example documents are available to all accounts. - State that a form-encoded request ignores the object, and link example_document_ids to the example documents guide. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- api-reference/openapi.json | 8 ++++---- api-reference/openapi.yaml | 32 ++++++++++++++++---------------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/api-reference/openapi.json b/api-reference/openapi.json index 143a6873..0c08b123 100644 --- a/api-reference/openapi.json +++ b/api-reference/openapi.json @@ -1111,17 +1111,17 @@ } }, "style_profile_id": { - "description": "Translate with a [style profile](/api-reference/style-profiles/list-all-style-profiles): its glossaries,\nstyle rule lists and translation memories through one ID. The profile is applied per text once the\nsource language is known: the glossaries with a dictionary for the text's language pair, the style\nrule list for the target language, and the translation memories whose source language matches the\ntext. A component that does not fit a text's language pair is left out for that text; this is not an\nerror.\n\nCannot be combined with `glossary_id`, `glossary_ids`, `style_id`, `translation_memory_id`,\n`translation_memory_threshold` or `custom_instructions`. A request that combines them is rejected\nwith `400 Bad Request`. A style profile that does not exist or that your account cannot access is\nrejected with `404 Not Found`.", + "description": "Translate with a [style profile](/api-reference/style-profiles/list-all-style-profiles): its glossaries,\nstyle rule lists and translation memories through one ID. The profile is applied per text once the\nsource language is known: the glossaries with a dictionary for the text's language pair, the style\nrule list for the target language, and the translation memories whose source language matches the\ntext. A component that does not fit a text's language pair is left out for that text; this is not an\nerror.\n\nCannot be combined with `customizations`, `glossary_id`, `glossary_ids`, `style_id`,\n`translation_memory_id`, `translation_memory_threshold` or `custom_instructions`. A request that\ncombines them is rejected with `400 Bad Request`. A style profile that does not exist or that your\naccount cannot access is rejected with `404 Not Found`.", "type": "string", "format": "uuid", "example": "3f1c9d0e-7a24-4b58-9c31-8f0e5d2a1b47" }, "customizations": { - "description": "All customizations of the request in one object: glossaries, a style rule list, custom\ninstructions, a translation memory and example documents. For new integrations we recommend\nthis object over the individual customization parameters. Each field behaves like the\nparameter it corresponds to.\n\nCannot be used together with `glossary_id`, `glossary_ids`, `style_id`, `translation_memory_id`,\n`translation_memory_threshold` or `custom_instructions`. A request that combines them is rejected\nwith `400 Bad Request` naming the conflicting parameter. Accepted in JSON request bodies only.\n\nAvailable for accounts that have it enabled. Contact your DeepL representative to request access.", + "description": "All customizations of the request in one object: glossaries, a style rule list, custom\ninstructions, a translation memory and example documents. For new integrations we recommend\nthis object over the individual customization parameters. Each field behaves like the\nparameter it corresponds to.\n\nCannot be used together with `style_profile_id`, `glossary_id`, `glossary_ids`, `style_id`,\n`translation_memory_id`, `translation_memory_threshold` or `custom_instructions`. A request that\ncombines them is rejected with `400 Bad Request` naming the conflicting parameter.\n\nAccepted in JSON request bodies only. In a form-encoded request the object is ignored and the\ntext is translated without these customizations.", "type": "object", "properties": { "glossary_ids": { - "description": "Up to 5 glossaries to use for the translation, in the order they should be applied. Corresponds to\n`glossary_ids`: requires `source_lang`, and every listed glossary must contain a dictionary for the\nrequested language pair.", + "description": "Up to 5 glossaries to use for the translation, in the order they should be applied. Corresponds to\n`glossary_ids`: every listed glossary must contain a dictionary for the language pair of the\nrequest. If `source_lang` is omitted, DeepL detects the source language and uses the\ndictionaries for the detected language pair.", "type": "array", "items": { "type": "string", @@ -1167,7 +1167,7 @@ } }, "example_document_ids": { - "description": "Up to 10 example documents whose translations the model adapts to, in the order they should be\napplied. A document must be fully imported and written in the target language; a document that\ndoes not fit the request's language pair is left out. An ID your account cannot access is rejected\nwith `404 Not Found`.\n\nAvailable for accounts with example documents enabled.", + "description": "Up to 10 [example documents](/docs/customize/using-example-documents) whose style, tone and\nterminology the translation adapts to, in the order they should be applied. A document must be\nfully imported and written in the target language; a document in another language is left out\nwithout an error. An ID your account cannot access is rejected with `404 Not Found`.", "type": "array", "items": { "type": "string", diff --git a/api-reference/openapi.yaml b/api-reference/openapi.yaml index 56138530..c201d533 100644 --- a/api-reference/openapi.yaml +++ b/api-reference/openapi.yaml @@ -923,10 +923,10 @@ paths: text. A component that does not fit a text's language pair is left out for that text; this is not an error. - Cannot be combined with `glossary_id`, `glossary_ids`, `style_id`, `translation_memory_id`, - `translation_memory_threshold` or `custom_instructions`. A request that combines them is rejected - with `400 Bad Request`. A style profile that does not exist or that your account cannot access is - rejected with `404 Not Found`. + Cannot be combined with `customizations`, `glossary_id`, `glossary_ids`, `style_id`, + `translation_memory_id`, `translation_memory_threshold` or `custom_instructions`. A request that + combines them is rejected with `400 Bad Request`. A style profile that does not exist or that your + account cannot access is rejected with `404 Not Found`. type: string format: uuid example: 3f1c9d0e-7a24-4b58-9c31-8f0e5d2a1b47 @@ -937,18 +937,20 @@ paths: this object over the individual customization parameters. Each field behaves like the parameter it corresponds to. - Cannot be used together with `glossary_id`, `glossary_ids`, `style_id`, `translation_memory_id`, - `translation_memory_threshold` or `custom_instructions`. A request that combines them is rejected - with `400 Bad Request` naming the conflicting parameter. Accepted in JSON request bodies only. + Cannot be used together with `style_profile_id`, `glossary_id`, `glossary_ids`, `style_id`, + `translation_memory_id`, `translation_memory_threshold` or `custom_instructions`. A request that + combines them is rejected with `400 Bad Request` naming the conflicting parameter. - Available for accounts that have it enabled. Contact your DeepL representative to request access. + Accepted in JSON request bodies only. In a form-encoded request the object is ignored and the + text is translated without these customizations. type: object properties: glossary_ids: description: |- Up to 5 glossaries to use for the translation, in the order they should be applied. Corresponds to - `glossary_ids`: requires `source_lang`, and every listed glossary must contain a dictionary for the - requested language pair. + `glossary_ids`: every listed glossary must contain a dictionary for the language pair of the + request. If `source_lang` is omitted, DeepL detects the source language and uses the + dictionaries for the detected language pair. type: array items: type: string @@ -994,12 +996,10 @@ paths: example: 75 example_document_ids: description: |- - Up to 10 example documents whose translations the model adapts to, in the order they should be - applied. A document must be fully imported and written in the target language; a document that - does not fit the request's language pair is left out. An ID your account cannot access is rejected - with `404 Not Found`. - - Available for accounts with example documents enabled. + Up to 10 [example documents](/docs/customize/using-example-documents) whose style, tone and + terminology the translation adapts to, in the order they should be applied. A document must be + fully imported and written in the target language; a document in another language is left out + without an error. An ID your account cannot access is rejected with `404 Not Found`. type: array items: type: string From b0bdaa8842c1698b9853bdf1324a83137ae06047 Mon Sep 17 00:00:00 2001 From: Nikolay Yashin Date: Thu, 26 Nov 2026 13:14:57 +0100 Subject: [PATCH 3/3] docs: put each customizations paragraph on one line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The reference renders line breaks inside a description as hard breaks, so the wrapped paragraphs of customizations and style_profile_id showed broken lines. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- api-reference/openapi.json | 16 ++++++------- api-reference/openapi.yaml | 48 +++++++++----------------------------- 2 files changed, 19 insertions(+), 45 deletions(-) diff --git a/api-reference/openapi.json b/api-reference/openapi.json index 0c08b123..064797bf 100644 --- a/api-reference/openapi.json +++ b/api-reference/openapi.json @@ -1111,17 +1111,17 @@ } }, "style_profile_id": { - "description": "Translate with a [style profile](/api-reference/style-profiles/list-all-style-profiles): its glossaries,\nstyle rule lists and translation memories through one ID. The profile is applied per text once the\nsource language is known: the glossaries with a dictionary for the text's language pair, the style\nrule list for the target language, and the translation memories whose source language matches the\ntext. A component that does not fit a text's language pair is left out for that text; this is not an\nerror.\n\nCannot be combined with `customizations`, `glossary_id`, `glossary_ids`, `style_id`,\n`translation_memory_id`, `translation_memory_threshold` or `custom_instructions`. A request that\ncombines them is rejected with `400 Bad Request`. A style profile that does not exist or that your\naccount cannot access is rejected with `404 Not Found`.", + "description": "Translate with a [style profile](/api-reference/style-profiles/list-all-style-profiles): its glossaries, style rule lists and translation memories through one ID. The profile is applied per text once the source language is known: the glossaries with a dictionary for the text's language pair, the style rule list for the target language, and the translation memories whose source language matches the text. A component that does not fit a text's language pair is left out for that text; this is not an error.\n\nCannot be combined with `customizations`, `glossary_id`, `glossary_ids`, `style_id`, `translation_memory_id`, `translation_memory_threshold` or `custom_instructions`. A request that combines them is rejected with `400 Bad Request`. A style profile that does not exist or that your account cannot access is rejected with `404 Not Found`.", "type": "string", "format": "uuid", "example": "3f1c9d0e-7a24-4b58-9c31-8f0e5d2a1b47" }, "customizations": { - "description": "All customizations of the request in one object: glossaries, a style rule list, custom\ninstructions, a translation memory and example documents. For new integrations we recommend\nthis object over the individual customization parameters. Each field behaves like the\nparameter it corresponds to.\n\nCannot be used together with `style_profile_id`, `glossary_id`, `glossary_ids`, `style_id`,\n`translation_memory_id`, `translation_memory_threshold` or `custom_instructions`. A request that\ncombines them is rejected with `400 Bad Request` naming the conflicting parameter.\n\nAccepted in JSON request bodies only. In a form-encoded request the object is ignored and the\ntext is translated without these customizations.", + "description": "All customizations of the request in one object: glossaries, a style rule list, custom instructions, a translation memory and example documents. For new integrations we recommend this object over the individual customization parameters. Each field behaves like the parameter it corresponds to.\n\nCannot be used together with `style_profile_id`, `glossary_id`, `glossary_ids`, `style_id`, `translation_memory_id`, `translation_memory_threshold` or `custom_instructions`. A request that combines them is rejected with `400 Bad Request` naming the conflicting parameter.\n\nAccepted in JSON request bodies only. In a form-encoded request the object is ignored and the text is translated without these customizations.", "type": "object", "properties": { "glossary_ids": { - "description": "Up to 5 glossaries to use for the translation, in the order they should be applied. Corresponds to\n`glossary_ids`: every listed glossary must contain a dictionary for the language pair of the\nrequest. If `source_lang` is omitted, DeepL detects the source language and uses the\ndictionaries for the detected language pair.", + "description": "Up to 5 glossaries to use for the translation, in the order they should be applied. Corresponds to `glossary_ids`: every listed glossary must contain a dictionary for the language pair of the request. If `source_lang` is omitted, DeepL detects the source language and uses the dictionaries for the detected language pair.", "type": "array", "items": { "type": "string", @@ -1130,13 +1130,13 @@ } }, "style_rule_id": { - "description": "The [style rule list](/docs/customize/using-style-rules) to use for the translation. Corresponds to\n`style_id`: the target language has to match the language of the style rule list.", + "description": "The [style rule list](/docs/customize/using-style-rules) to use for the translation. Corresponds to `style_id`: the target language has to match the language of the style rule list.", "type": "string", "format": "uuid", "example": "7ff9bfd6-cd85-4190-8503-d6215a321519" }, "custom_instructions": { - "description": "Up to 10 instructions of at most 300 characters each. Corresponds to `custom_instructions`,\nincluding its target language restriction.", + "description": "Up to 10 instructions of at most 300 characters each. Corresponds to `custom_instructions`, including its target language restriction.", "type": "array", "items": { "type": "string", @@ -1144,7 +1144,7 @@ } }, "translation_memories": { - "description": "The translation memory to use for the translation, with an optional matching threshold. Corresponds\nto `translation_memory_id` and `translation_memory_threshold`. Currently one entry is supported;\na request with more is rejected with `400 Bad Request`.", + "description": "The translation memory to use for the translation, with an optional matching threshold. Corresponds to `translation_memory_id` and `translation_memory_threshold`. Currently one entry is supported; a request with more is rejected with `400 Bad Request`.", "type": "array", "items": { "type": "object", @@ -1156,7 +1156,7 @@ "$ref": "#/components/schemas/TranslationMemoryId" }, "threshold": { - "description": "The minimum matching percentage required for a translation memory segment to be applied,\nbetween 50 and 100. Defaults to 75. A value outside this range is rejected with\n`400 Bad Request`.", + "description": "The minimum matching percentage required for a translation memory segment to be applied, between 50 and 100. Defaults to 75. A value outside this range is rejected with `400 Bad Request`.", "type": "integer", "minimum": 50, "maximum": 100, @@ -1167,7 +1167,7 @@ } }, "example_document_ids": { - "description": "Up to 10 [example documents](/docs/customize/using-example-documents) whose style, tone and\nterminology the translation adapts to, in the order they should be applied. A document must be\nfully imported and written in the target language; a document in another language is left out\nwithout an error. An ID your account cannot access is rejected with `404 Not Found`.", + "description": "Up to 10 [example documents](/docs/customize/using-example-documents) whose style, tone and terminology the translation adapts to, in the order they should be applied. A document must be fully imported and written in the target language; a document in another language is left out without an error. An ID your account cannot access is rejected with `404 Not Found`.", "type": "array", "items": { "type": "string", diff --git a/api-reference/openapi.yaml b/api-reference/openapi.yaml index c201d533..586df107 100644 --- a/api-reference/openapi.yaml +++ b/api-reference/openapi.yaml @@ -916,41 +916,24 @@ paths: example: "Use a friendly, diplomatic tone" style_profile_id: description: |- - Translate with a [style profile](/api-reference/style-profiles/list-all-style-profiles): its glossaries, - style rule lists and translation memories through one ID. The profile is applied per text once the - source language is known: the glossaries with a dictionary for the text's language pair, the style - rule list for the target language, and the translation memories whose source language matches the - text. A component that does not fit a text's language pair is left out for that text; this is not an - error. + Translate with a [style profile](/api-reference/style-profiles/list-all-style-profiles): its glossaries, style rule lists and translation memories through one ID. The profile is applied per text once the source language is known: the glossaries with a dictionary for the text's language pair, the style rule list for the target language, and the translation memories whose source language matches the text. A component that does not fit a text's language pair is left out for that text; this is not an error. - Cannot be combined with `customizations`, `glossary_id`, `glossary_ids`, `style_id`, - `translation_memory_id`, `translation_memory_threshold` or `custom_instructions`. A request that - combines them is rejected with `400 Bad Request`. A style profile that does not exist or that your - account cannot access is rejected with `404 Not Found`. + Cannot be combined with `customizations`, `glossary_id`, `glossary_ids`, `style_id`, `translation_memory_id`, `translation_memory_threshold` or `custom_instructions`. A request that combines them is rejected with `400 Bad Request`. A style profile that does not exist or that your account cannot access is rejected with `404 Not Found`. type: string format: uuid example: 3f1c9d0e-7a24-4b58-9c31-8f0e5d2a1b47 customizations: description: |- - All customizations of the request in one object: glossaries, a style rule list, custom - instructions, a translation memory and example documents. For new integrations we recommend - this object over the individual customization parameters. Each field behaves like the - parameter it corresponds to. + All customizations of the request in one object: glossaries, a style rule list, custom instructions, a translation memory and example documents. For new integrations we recommend this object over the individual customization parameters. Each field behaves like the parameter it corresponds to. - Cannot be used together with `style_profile_id`, `glossary_id`, `glossary_ids`, `style_id`, - `translation_memory_id`, `translation_memory_threshold` or `custom_instructions`. A request that - combines them is rejected with `400 Bad Request` naming the conflicting parameter. + Cannot be used together with `style_profile_id`, `glossary_id`, `glossary_ids`, `style_id`, `translation_memory_id`, `translation_memory_threshold` or `custom_instructions`. A request that combines them is rejected with `400 Bad Request` naming the conflicting parameter. - Accepted in JSON request bodies only. In a form-encoded request the object is ignored and the - text is translated without these customizations. + Accepted in JSON request bodies only. In a form-encoded request the object is ignored and the text is translated without these customizations. type: object properties: glossary_ids: description: |- - Up to 5 glossaries to use for the translation, in the order they should be applied. Corresponds to - `glossary_ids`: every listed glossary must contain a dictionary for the language pair of the - request. If `source_lang` is omitted, DeepL detects the source language and uses the - dictionaries for the detected language pair. + Up to 5 glossaries to use for the translation, in the order they should be applied. Corresponds to `glossary_ids`: every listed glossary must contain a dictionary for the language pair of the request. If `source_lang` is omitted, DeepL detects the source language and uses the dictionaries for the detected language pair. type: array items: type: string @@ -958,24 +941,20 @@ paths: example: def3a26b-3e84-45b3-84ae-0c0aaf3525f7 style_rule_id: description: |- - The [style rule list](/docs/customize/using-style-rules) to use for the translation. Corresponds to - `style_id`: the target language has to match the language of the style rule list. + The [style rule list](/docs/customize/using-style-rules) to use for the translation. Corresponds to `style_id`: the target language has to match the language of the style rule list. type: string format: uuid example: 7ff9bfd6-cd85-4190-8503-d6215a321519 custom_instructions: description: |- - Up to 10 instructions of at most 300 characters each. Corresponds to `custom_instructions`, - including its target language restriction. + Up to 10 instructions of at most 300 characters each. Corresponds to `custom_instructions`, including its target language restriction. type: array items: type: string example: "Use a friendly, diplomatic tone" translation_memories: description: |- - The translation memory to use for the translation, with an optional matching threshold. Corresponds - to `translation_memory_id` and `translation_memory_threshold`. Currently one entry is supported; - a request with more is rejected with `400 Bad Request`. + The translation memory to use for the translation, with an optional matching threshold. Corresponds to `translation_memory_id` and `translation_memory_threshold`. Currently one entry is supported; a request with more is rejected with `400 Bad Request`. type: array items: type: object @@ -986,9 +965,7 @@ paths: $ref: '#/components/schemas/TranslationMemoryId' threshold: description: |- - The minimum matching percentage required for a translation memory segment to be applied, - between 50 and 100. Defaults to 75. A value outside this range is rejected with - `400 Bad Request`. + The minimum matching percentage required for a translation memory segment to be applied, between 50 and 100. Defaults to 75. A value outside this range is rejected with `400 Bad Request`. type: integer minimum: 50 maximum: 100 @@ -996,10 +973,7 @@ paths: example: 75 example_document_ids: description: |- - Up to 10 [example documents](/docs/customize/using-example-documents) whose style, tone and - terminology the translation adapts to, in the order they should be applied. A document must be - fully imported and written in the target language; a document in another language is left out - without an error. An ID your account cannot access is rejected with `404 Not Found`. + Up to 10 [example documents](/docs/customize/using-example-documents) whose style, tone and terminology the translation adapts to, in the order they should be applied. A document must be fully imported and written in the target language; a document in another language is left out without an error. An ID your account cannot access is rejected with `404 Not Found`. type: array items: type: string