import_glossary_csv
Import CSV files into a glossary to build custom translation memories. Supports unidirectional and multidirectional formats for flexible term management.
Instructions
Imports a CSV file into a glossary. Supports unidirectional and multidirectional formats. This is an async operation that returns an import job object containing an import_id. Poll with check_glossary_import_status using the returned import_id until the import is complete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The glossary ID (format: gls_*, e.g., 'gls_xyz123') | |
| csv_content | Yes | The content of the CSV file to upload | |
| content_type | Yes | The format of the CSV file. 'csv/table-uni' for unidirectional, 'csv/table-multi' for multidirectional | csv/table-uni |
| gzip | No | Whether the CSV content is gzip compressed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Import job identifier | |
| begin | No | Begin offset of the import | |
| end | No | End offset of the import | |
| channel | No | Channel identifier used by the import | |
| size | No | Total number of entries in the import | |
| progress | No | Import progress between 0 and 1 (1 means complete) |