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

Authorization

Authorization<token>

API key authentication. Allowed headers-- "Authorization: ApiKey <api_key>".

In: header

Authorization<token>

API key authentication. Allowed headers-- "Authorization: ApiKey <api_key>".

In: header

Header Parameters

idempotency-keystring

A header for idempotency purposes

Response Body

Master translations uploaded successfully

successRequiredboolean

Overall success status of the import operation

messageRequiredstring

Human-readable message describing the import result

successfularray<string>

List of resource IDs that were successfully imported

failedarray<string>

List of resource IDs that failed to import

export interface Response {
  /**
   * Overall success status of the import operation
   */
  success: boolean;
  /**
   * Human-readable message describing the import result
   */
  message: string;
  /**
   * List of resource IDs that were successfully imported
   */
  successful?: string[];
  /**
   * List of resource IDs that failed to import
   */
  failed?: string[];
}
 
curl -X POST "https://api.novu.co/v2/translations/master-json/upload" \
  -H "idempotency-key: string" \
  -H "Authorization: <token>"
{
  "success": true,
  "message": "Successfully imported translations for 2 resources: welcome-email, password-reset",
  "successful": [
    "welcome-email",
    "password-reset"
  ],
  "failed": [
    "missing-workflow"
  ]
}

On this page

No Headings
Edit this page on GitHub