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

# POST /v3/{+parent}/glossaries

`POST /v3/{+parent}/glossaries`

Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project doesn't exist.

## Path parameters

- `parent` string, required

## Request body

- Glossary — Represents a glossary built from user-provided data.
  - `name` string — Identifier. The resource name of the glossary. Glossary names have the form `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.
  - `languagePair` LanguageCodePair — Used with unidirectional glossaries.
    - `sourceLanguageCode` string — Required. The ISO-639 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code.
    - `targetLanguageCode` string — Required. The ISO-639 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
  - `inputConfig` GlossaryInputConfig — Input configuration for glossaries.
    - `gcsSource` GcsSource — The Google Cloud Storage location for the input content.
      - `inputUri` string — Required. Source data URI. For example, `gs://my_bucket/my_object`.
  - `submitTime` string, google-datetime — Output only. When CreateGlossary was called.
  - `entryCount` integer — Output only. The number of entries defined in the glossary.
  - `displayName` string — Optional. The display name of the glossary.
  - `languageCodesSet` LanguageCodesSet — Used with equivalent term set glossaries.
    - `languageCodes` string[] — Optional. The ISO-639 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for GlossaryTerm.language_code.
  - `endTime` string, google-datetime — Output only. When the glossary creation was finished.

## 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)
