curl --request PATCH \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/hooks/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"config": {
"url": "<string>",
"content_type": "<string>",
"secret": "<string>"
},
"events": [
"<string>"
],
"active": true
}
'{
"id": 123,
"type": "gogs",
"events": [
"<string>"
],
"active": true,
"config": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}curl --request PATCH \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/hooks/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"config": {
"url": "<string>",
"content_type": "<string>",
"secret": "<string>"
},
"events": [
"<string>"
],
"active": true
}
'{
"id": 123,
"type": "gogs",
"events": [
"<string>"
],
"active": true,
"config": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Personal access token. Use format: token {YOUR_ACCESS_TOKEN}
Repository owner
Repository name
Hook ID