Create glossary
    • PDF

    Create glossary

    • PDF

    Article summary

    Available in Classic and VPC

    Create a glossary. Glossaries help you maintain consistency in translations when using Papago Text Translation. You can manage glossaries through the API and in the NAVER Cloud Platform console.

    Note

    For more information on how to manage glossaries in the NAVER Cloud Platform console, see Glossary in the Papago Text Translation user guide.

    Request

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

    MethodURI
    POST/create

    Request headers

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

    Request body

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

    FieldTypeRequiredDescription
    glossaryNameStringRequiredGlossary name
    • Up to 20 characters
    descriptionStringOptionalGlossary description
    • Up to 50 characters

    Request example

    The request example is as follows:

    curl --location --request POST 'https://papago.apigw.ntruss.com/glossary/v1/create' \
    --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}' \
    --header 'Content-Type: application/json' \
    --data '{
        "glossaryName": "GlossaryTest1",
        "description": "This is a description of the GlossaryTest1 glossary."
    }'
    

    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

    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}"
        }
    }
    

    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.