Gitea · Example Payload

Gitea Rest Api Pull Create Example

GitSource ControlDevOpsCI/CDCode HostingOpen SourceSelf HostedPackage RegistryIssue TrackingPull Requests

Gitea Rest Api Pull 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}/pulls",
    "operationId": "repoCreatePullRequest",
    "summary": "Create a pull request",
    "tags": [
      "repository"
    ]
  },
  "request": {
    "headers": {
      "Authorization": "token abc123",
      "Content-Type": "application/json"
    },
    "body": {
      "title": "Add feature",
      "body": "Description",
      "head": "feature/x",
      "base": "main"
    }
  },
  "response": {
    "status": 201,
    "body": {}
  }
}