MENU
      Upload glossary

        Upload glossary


        Article summary

        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:

        MethodURI
        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:

        FieldTypeRequiredDescription
        glossaryKeyStringRequiredGlossary ID

        Request body

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

        FieldTypeRequiredDescription
        fileCSVRequiredTerm 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}"'
        Shell

        Response

        This section describes the response format.

        Response body

        The response body includes the following data:

        FieldTypeRequiredDescription
        dataObject-Glossary creation details
        data.glossaryKeyString-Glossary ID
        data.glossaryNameString-Glossary name
        data.descriptionString-Glossary description
        data.createdDateTimeInteger-Glossary creation date and time (timestamp)
        data.updatedDateTimeInteger-Glossary last update date and time (timestamp)
        data.wordCountInteger-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
            }
        }
        JSON

        Was this article helpful?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.