Translations

Upload master translations JSON file

Upload a master JSON file containing translations for multiple workflows. Locale is automatically detected from filename (e.g., en_US.json)

post/v2/translations/master-json/upload

Request

  • Base URL
    https://api.novu.co
  • Auth
    • API key in header Authorization
    • or API key in header Authorization

Headers

idempotency-keystring

A header for idempotency purposes

Request body multipart/form-data

filestring binary required

Master JSON file with locale as filename (e.g., en_US.json)

Response

Master translations uploaded successfully

successboolean required

Overall success status of the import operation

messagestring required

Human-readable message describing the import result

successfulstring[]

List of resource IDs that were successfully imported

failedstring[]

List of resource IDs that failed to import

Example response

{
  "success": true,
  "message": "Successfully imported translations for 2 resources: welcome-email, password-reset",
  "successful": [
    "welcome-email",
    "password-reset"
  ],
  "failed": [
    "missing-workflow"
  ]
}

Changes

No recorded changes to this operation across all 20 revisions of this API.