Translations
Upload master translations JSON file
Upload master translations JSON file using the Novu REST API. Requires your environment secret key in the Authorization header.
POST
PHP
Authorizations
API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".
Headers
A header for idempotency purposes
Body
multipart/form-data
Master JSON file with locale as filename (e.g., en_US.json)
Response
200 - application/json
Master translations uploaded successfully
Overall success status of the import operation
Example:
true
Human-readable message describing the import result
Example:
"Successfully imported translations for 2 resources: welcome-email, password-reset"
List of resource IDs that were successfully imported
Example:
["welcome-email", "password-reset"]List of resource IDs that failed to import
Example:
["missing-workflow"]