update_whats_app_message_template
¶
update_whats_app_message_template(
id: LinkedWhatsAppBusinessAccountId,
*,
config_overrides: Optional[SocialMessagingClientConfig] = None,
meta_template_id: Optional[MetaTemplateId] = None,
template_name: Optional[MetaTemplateName] = None,
template_language_code: Optional[MetaTemplateLanguage] = None,
parameter_format: Optional[MetaParameterFormat] = None,
template_category: Optional[MetaTemplateCategory] = None,
template_components: Optional[MetaTemplateComponents] = None,
cta_url_link_tracking_opted_out: Optional[
MetaTemplateCtaLinkTrackingOptedOut
] = None,
) -> UpdateWhatsAppMessageTemplateOutput
Updates an existing WhatsApp message template.
Parameters:
-
id(LinkedWhatsAppBusinessAccountId) –The ID of the WhatsApp Business Account associated with this template.
-
meta_template_id(Optional[MetaTemplateId], default:None) –The numeric ID of the template assigned by Meta.
-
template_name(Optional[MetaTemplateName], default:None) –The name of the message template. Use together with
templateLanguageCodeas an alternative tometaTemplateIdto identify a template. -
template_language_code(Optional[MetaTemplateLanguage], default:None) –The language code of the message template (for example,
enoren_US). Use together withtemplateNameas an alternative tometaTemplateIdto identify a template. -
parameter_format(Optional[MetaParameterFormat], default:None) –The format specification for parameters in the template, this can be either 'named' or 'positional'.
-
template_category(Optional[MetaTemplateCategory], default:None) –The new category for the template (for example, UTILITY or MARKETING).
-
template_components(Optional[MetaTemplateComponents], default:None) –The updated components of the template as a JSON blob (maximum 3000 characters).
-
cta_url_link_tracking_opted_out(Optional[MetaTemplateCtaLinkTrackingOptedOut], default:None) –When true, disables click tracking for call-to-action URL buttons in the template.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ValidationException–The request contains an invalid parameter value.
-
AccessDeniedByMetaException–You do not have sufficient access to perform this action.
-
DependencyException–Thrown when performing an action because a dependency would be broken.
-
InternalServiceException–The request processing has failed because of an unknown error, exception, or failure.
-
InvalidParametersException–One or more parameters provided to the action are not valid.
-
ResourceNotFoundException–The resource was not found.
-
ThrottledRequestException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.