Skip to main content

promotionRuleTranslate Mutation

Creates/updates translations for a promotion rule.

Requires the MANAGE_TRANSLATIONSpermission.
promotionRuleTranslate(
id: ID!
input: PromotionRuleTranslationInput!
languageCode: LanguageCodeEnum!
): PromotionRuleTranslate
Details
type PromotionRuleTranslate {
errors: [TranslationError!]!
promotionRule: PromotionRule
}

Arguments​

id ● ID!​

PromotionRule ID or PromotionRuleTranslatableContent ID.

input ● PromotionRuleTranslationInput!​

Fields required to update promotion rule translations.

languageCode ● LanguageCodeEnum!​

Translation language code.

Type​

PromotionRuleTranslate​

Creates/updates translations for a promotion rule.

Requires the MANAGE_TRANSLATIONSpermission.