cURL
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 } '
{ "id": 123, "type": "gogs", "events": [ "<string>" ], "active": true, "config": {}, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }
Documentation IndexFetch the complete documentation index at: https://gogs.io/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://gogs.io/llms.txt
Use this file to discover all available pages before exploring further.
Personal access token. Use format: token {YOUR_ACCESS_TOKEN}
Repository owner
Repository name
gogs
slack
discord
dingtalk
Show child attributes
Created