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.
Source code in docs_src/capo_socialmessaging/_services/social_messaging.py
1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 | |