图谱 API 版

Whats App Business Account Upsert Message Templates

读取

你无法在此端点执行该操作。

创建

你可以通过下列路径向 upsert_message_templates 连线发出 POST 请求:
When posting to this edge, no Graph object will be created.

参数

参数描述
category
enum {AUTHENTICATION}

Template category. See Template Categories.

必填
components
array<JSON object>

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

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

type

必填
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

必填
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

必填
signature_hash
string

signature_hash

必填
languages
array<string>

array of Template location and locale code.

必填
name
string

Template name.

必填

返回类型

这个端点支持先写后读,并会读取接收你的 POST 请求的节点。
Struct {
data: List [
Struct {
id: numeric string,
status: enum,
language: string,
}
],
}

错误代码

错误描述
100Invalid parameter

更新

你无法在此端点执行该操作。

删除

你无法在此端点执行该操作。