Update Webhook
PATCH
https://app.leiga.com/openapi/api/webhook/update
Webhook Module(webhook)
Request Request Example
Shell
JavaScript
Java
Swift
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"
}'
Response Response Example
{
"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"
}
]
}
}
Request
Header Params
Content-Type
string
required
Example:
application/json
accessToken
string
required
Example:
{{accessToken}}
Body Params application/json
Responses
Modified at 2024-06-12 06:46:49