curl --location --request PATCH 'https://app.leiga.com/openapi/api/webhook/update' \
--header 'accessToken: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"webhookId": 1,
"signature": "xxx",
"name": "xxx",
"state": "disabled",
"type": "dingTalk",
"eventIds": [
1,
2
],
"url": "https://xxx.xxx.com/callback"
}'
{
"code": "0",
"data": {
"createBy": 1,
"webhookId": 1,
"signature": "xxx",
"createTime": 1646301600000,
"name": "xxx",
"state": "disabled",
"type": "dingTalk",
"projectId": 1,
"url": "https://xxx.xxx.com/callback",
"events": [
{
"eventCode": "create",
"eventId": 1,
"typeName": "xxx",
"eventName": "xxx",
"typeCode": "issue"
}
]
}
}