Skip to content

docs: add the customizations object to POST /v2/translate - #438

Merged
healqq merged 3 commits into
mainfrom
docs/translate-customizations-object
Nov 26, 2026
Merged

healqq merged 3 commits into
mainfrom
docs/translate-customizations-object

Conversation

@lawl-dev

@lawl-dev lawl-dev commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Documents the customizations object on POST /v2/translate: glossary_ids, style_rule_id, custom_instructions, translation_memories[].id / threshold, and example_document_ids, each corresponding to an existing customization parameter. Covers the exclusivity with the individual parameters and with style_profile_id (400), the JSON-only restriction (a form-encoded request ignores the object), the threshold range (400 outside 50 to 100), and unknown example documents (404). Adds one sentence to the customize overview pointing at the object.

Response body is unchanged. openapi.json regenerated from the YAML.

Rebased onto main. The second commit brings the object up to date: glossary_ids no longer requires source_lang, style_profile_id and customizations exclude each other, and the access notes are dropped because the object and example documents are available to all accounts.

@mintlify

mintlify Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
deepl-c950b784 🟢 Ready View Preview Nov 26, 2026, 12:15 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

Maxim Brunnmeier and others added 2 commits November 26, 2026 13:06
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.
- 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 <noreply@anthropic.com>
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 <noreply@anthropic.com>
@healqq
healqq merged commit 0d23c8e into main Nov 26, 2026
3 checks passed
@healqq
healqq deleted the docs/translate-customizations-object branch November 26, 2026 15:57

This branch was successfully deployed

1 active deployment
staging — b0bdaa88 Deployed Nov 26, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants