更新 Webhook

PUT /openapi/2024-10/webhooks/{id}

权限:需根据应用权限判断是否有对应Webhook事件权限

Body参数

参数名

说明

必填

类型

address

订阅地址,不能同时为空

string

topic

订阅事件,不能同时为空

string

示例请求内容

{
    "address": "http://shop.com",
    "topic": "app/uninstalled",
}

示例响应内容

{
    "id": 1,
    "address": "http://shop.com",
    "topic": "app/uninstalled",
    "created_at": "2021-10-13T13:03:44+08:00",
    "updated_at": "2021-10-13T13:03:44+08:00",
    "format": "json",
    "fields": [
        "id",
        "updated_at"
    ],
    "metafield_namespaces": [
        ""
    ],
    "api_version": ""
}

Last updated