Gitea · Example Payload

Gitea Rest Api Webhook Create Example

GitSource ControlDevOpsCI/CDCode HostingOpen SourceSelf HostedPackage RegistryIssue TrackingPull Requests

Gitea Rest Api Webhook Create Example is an example object payload from Gitea, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationrequestresponse

Example Payload

Raw ↑
{
  "operation": {
    "method": "POST",
    "path": "/repos/{owner}/{repo}/hooks",
    "operationId": "repoCreateHook",
    "summary": "Create a hook",
    "tags": [
      "repository"
    ]
  },
  "request": {
    "headers": {
      "Authorization": "token abc123",
      "Content-Type": "application/json"
    },
    "body": {
      "type": "gitea",
      "config": {
        "content_type": "json",
        "url": "https://example.com/hook"
      },
      "events": [
        "push"
      ],
      "active": true
    }
  },
  "response": {
    "status": 201,
    "body": {}
  }
}