Version API du graphe

Whats App Business Account Upsert Message Templates

Lecture

Vous ne pouvez pas effectuer cette opération sur ce point de terminaison.

Création

You can make a POST request to upsert_message_templates edge from the following paths:
When posting to this edge, no Graph object will be created.

Paramètres

ParamètreDescription
category
enum {AUTHENTICATION}

Template category. See Template Categories.

Obligatoire
components
array<JSON object>

Array of components that make up the template. See Template Components.

Obligatoire
type
enum {GREETING, HEADER, BODY, FOOTER, BUTTONS, CAROUSEL, LIMITED_TIME_OFFER}

type

Obligatoire
add_security_recommendation
boolean

Set to true if you want the template to include the string, For your security, do not share this code. Set to false to exclude the string.

code_expiration_minutes
int64

Indicates number of minutes the password or code is valid.

If omitted, the code expiration warning will not be displayed in the delivered message.

Minimum 1, maximum 90.

buttons
array<JSON object>

Button components to be used in the template.

type
enum {OTP}

type

Obligatoire
otp_type
enum {COPY_CODE, ONE_TAP, ZERO_TAP}

Indicates button type. Set to COPY_CODE if you want the template to use a copy code button, or ONE_TAP to have it use a one-tap autofill button.

supported_apps
array<JSON object>

supported_apps

package_name
string

package_name

Obligatoire
signature_hash
string

signature_hash

Obligatoire
languages
array<string>

array of Template location and locale code.

Obligatoire
name
string

Template name.

Obligatoire

Type de retour

This endpoint supports read-after-write and will read the node to which you POSTed.
Struct {
data: List [
Struct {
id: numeric string,
status: enum,
language: string,
}
],
}

Error Codes

ErreurDescription
100Invalid parameter

Mise à jour

Vous ne pouvez pas effectuer cette opération sur ce point de terminaison.

Suppression

Vous ne pouvez pas effectuer cette opération sur ce point de terminaison.