Glossary API

Initialize glossary import process

Changed on

Initialize glossary import process. Upload file, and perform validation. ( No changes will be done during this method call ). In case of success glossary import will be created with 'PENDING' status.

post/glossary-api/v3/accounts/{accountUid}/glossaries/{glossaryUid}/import

Request

  • Base URL
    https://api.smartling.com
  • Auth
    HTTP bearer

Path parameters

accountUidstring required

The account’s unique identifier. This can be found in the Smartling Dashboard under Account Settings > API.

glossaryUidstring uuid required

Unique identifier of the glossary.

Request body multipart/form-data

archiveModeboolean

In case if true passed - all entries that are not in import file will be archived.

importFilestring binary required

Binary file data to upload (CSV, XLSX or TBX).

importFileNamestring

Name and extension of the import file. Optional: used to detect the format when it can't be detected from the uploaded file name.

importFileMediaType'text/csv' | 'text/xml' | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'

Import file media type. One of 'text/csv | text/xml | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'. Optional: used to detect the format when it can't be detected from the uploaded file name.

Response

OK

Example response

{
  "response": {
    "data": {
      "glossaryImport": {
        "importStatus": "PENDING"
      },
      "translationChanges": [
        {
          "localeId": "fr-FR"
        }
      ]
    }
  }
}

Changes

    • breaking

      the response's body type changed from no type to object for status

    • info

      the request property default value false was added

    • info

      removed subschema #2 from the response body allOf list for the response status

    • info

      added the required property to the response with the status

    • info

      endpoint added