Gitea · Example Payload

Gitea Rest Api Issue Create Example

GitSource ControlDevOpsCI/CDCode HostingOpen SourceSelf HostedPackage RegistryIssue TrackingPull Requests

Gitea Rest Api Issue 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}/issues",
    "operationId": "issueCreateIssue",
    "summary": "Create an issue. If using deadline only the date will be taken into account, and time of day ignored.",
    "tags": [
      "issue"
    ]
  },
  "request": {
    "headers": {
      "Authorization": "token abc123",
      "Content-Type": "application/json"
    },
    "body": {
      "title": "Bug report",
      "body": "Steps to reproduce...",
      "labels": [
        1,
        2
      ],
      "assignees": [
        "octocat"
      ]
    }
  },
  "response": {
    "status": 201,
    "body": {}
  }
}