diff --git a/backend/api/src/main/kotlin/io/tolgee/api/v2/controllers/MachineTranslationSettingsController.kt b/backend/api/src/main/kotlin/io/tolgee/api/v2/controllers/MachineTranslationSettingsController.kt index e6b5692f5c..5b4a7f31a2 100644 --- a/backend/api/src/main/kotlin/io/tolgee/api/v2/controllers/MachineTranslationSettingsController.kt +++ b/backend/api/src/main/kotlin/io/tolgee/api/v2/controllers/MachineTranslationSettingsController.kt @@ -46,6 +46,7 @@ class MachineTranslationSettingsController( @PutMapping("/{projectId}/machine-translation-service-settings") @Operation(summary = "Sets machine translation settings for project") @RequiresProjectPermissions([ Scope.LANGUAGES_EDIT ]) + @AllowApiAccess fun setMachineTranslationSettings( @RequestBody dto: SetMachineTranslationSettingsDto, ): CollectionModel { @@ -56,6 +57,7 @@ class MachineTranslationSettingsController( @GetMapping("/{projectId}/machine-translation-language-info") @Operation(summary = "Returns info about formality and ") @RequiresProjectPermissions([ Scope.LANGUAGES_EDIT ]) + @AllowApiAccess fun getMachineTranslationLanguageInfo(): CollectionModel { val data = mtServiceConfigService.getLanguageInfo(projectHolder.project) return CollectionModel.of(