Authorization: Bearer ********************
{
"bindings": [
{
"ref": {
"type": "action_id",
"value": "f5B63fDC-18Ae-0cdB-63fe-B5822566Bf87"
},
"display_name": "发送企业微信消息"
},
{
"ref": {
"type": "action_id",
"value": "969fd9EF-A6d8-68c6-90ec-718b78AF6af1"
},
"display_name": "多因素认证"
}
]
}
curl --location -g --request PATCH 'https://..authok.cn/api/v1/actions/triggers//bindings' \
--header 'Content-Type: application/json' \
--data-raw '{
"bindings": [
{
"ref": {
"type": "action_id",
"value": "f5B63fDC-18Ae-0cdB-63fe-B5822566Bf87"
},
"display_name": "发送企业微信消息"
},
{
"ref": {
"type": "action_id",
"value": "969fd9EF-A6d8-68c6-90ec-718b78AF6af1"
},
"display_name": "多因素认证"
}
]
}'
{
"items": {
"id": "bd86bcBF-ce20-133b-4858-ABD7DAaCdDB3",
"trigger_id": "post-login",
"display_name": "登录后发送邮件通知",
"action": {
"name": "发送企业微信消息",
"supported_triggers": [
"post-login"
],
"code": "module.exports = {}",
"dependencies": [
{
"name": "lodash",
"version": "1.0.0"
}
],
"runtime": "node16",
"secrets": [
{
"name": "token_secret",
"value": "estj32fji"
}
],
"id": "b6eE3BC7-62f0-2dD5-df56-4EdD4e8bDB2F"
},
"created_at": "1998-03-14 PM 23:36:13",
"updated_at": "1990-03-15 AM 09:42:20"
}
}