curl --request POST \
--url https://gogs.example.com/api/v1/repos/{owner}/{repo}/hooks \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "gogs",
"config": {
"url": "<string>",
"content_type": "json",
"secret": "<string>"
},
"events": [
"push"
],
"active": false
}
'