Upload glossary

Prev Next

Available in Classic and VPC

Upload a term list file to a glossary.

Request

This section describes the request format. The method and URI are as follows:

Method URI
POST /{glossaryKey}/upload

Request headers

For information about the headers common to all Papago Translation APIs, see Common Papago Translation headers.

Request path parameters

You can use the following path parameters with your request:

Field Type Required Description
glossaryKey String Required Glossary ID

Request body

You can include the following data in the body of your request:

Field Type Required Description
file CSV Required Term list file
  • File in CSV format per language pair (source - translation)
  • For more information, see Upload glossary file user guide of NAVER Cloud Platform

Request example

The request example is as follows:

curl --location --request POST 'https://papago.apigw.ntruss.com/glossary/v1/{glossaryKey}/upload' \
--header 'x-ncp-apigw-timestamp: {x-ncp-apigw-timestamp}' \
--header 'x-ncp-iam-access-key: {x-ncp-iam-access-key}' \
--header 'x-ncp-apigw-signature-v2: {x-ncp-apigw-signature-v2}' \
--form 'file=@"{file}"'

Response

This section describes the response format.

Response body

The response body includes the following data:

Field Type Required Description
data Object - Glossary creation details
data.glossaryKey String - Glossary ID
data.glossaryName String - Glossary name
data.description String - Glossary description
data.createdDateTime Integer - Glossary creation date and time (timestamp)
data.updatedDateTime Integer - Glossary last update date and time (timestamp)
data.wordCount Integer - Number of terms in glossary

Response status codes

For information about the HTTP status codes common to all Papago Translation APIs, see Common Papago Translation response status codes.

Response example

The response example is as follows:

{
    "data": {
        "glossaryKey": "{glossaryKey}",
        "glossaryName": "GlossaryTest1",
        "description": "This is a description of the GlossaryTest1 glossary.",
        "createdDateTime": 1724209126000,
        "updatedDateTime": 1724215159000
    }
}