---
title: "POST /v3/{+parent}:adaptiveMtTranslate"
method: POST
path: "/v3/{+parent}:adaptiveMtTranslate"
tags: ["projects"]
---

# POST /v3/{+parent}:adaptiveMtTranslate

`POST /v3/{+parent}:adaptiveMtTranslate`

Translate text using Adaptive MT.

## Path parameters

- `parent` string, required

## Request body

- AdaptiveMtTranslateRequest — The request for sending an AdaptiveMt translation query.
  - `content` string[] — Required. The content of the input in string format.
  - `referenceSentenceConfig` ReferenceSentenceConfig — Message of caller-provided reference configuration.
    - `referenceSentencePairLists` ReferenceSentencePairList[] — Reference sentences pair lists. Each list will be used as the references to translate the sentence under "content" field at the corresponding index. Length of the list is required to be equal to the length of "content" field.
      - `referenceSentencePairs` ReferenceSentencePair[] — Reference sentence pairs.
        - `sourceSentence` string — Source sentence in the sentence pair.
        - `targetSentence` string — Target sentence in the sentence pair.
    - `targetLanguageCode` string — Target language code.
    - `sourceLanguageCode` string — Source language code.
  - `glossaryConfig` GlossaryConfig — Configures which glossary is used for a specific target language and defines options for applying that glossary.
    - `glossary` string — Required. The `glossary` to be applied for this translation. The format depends on the glossary: - User-provided custom glossary: `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`
    - `ignoreCase` boolean — Optional. Indicates match is case insensitive. The default value is `false` if missing.
    - `contextualTranslationEnabled` boolean — Optional. If set to true, the glossary will be used for contextual translation.
  - `dataset` string — Required. The resource name for the dataset to use for adaptive MT translation. `projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}`

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/translate.md) · [All operations](https://skmtc.dev/google/apis/translate/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/translate/revisions/1597c11ae5de/schema)
