Gitea · JSON Structure

Gitea Rest Api Branch Structure

JSON Structure description of the Gitea Branch entity.

Type: object Properties: 9
GitSource ControlDevOpsCI/CDCode HostingOpen-SourceSelf-HostedPackage RegistryIssue TrackingPull Requests

Branch is a JSON Structure definition published by Gitea, describing 9 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

commit effective_branch_protection_name enable_status_check name protected required_approvals status_check_contexts user_can_merge user_can_push

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/gitea/refs/heads/main/json-structure/gitea-rest-api-branch-structure.json",
  "name": "Branch",
  "description": "JSON Structure description of the Gitea Branch entity.",
  "type": "object",
  "properties": {
    "commit": {
      "type": "string"
    },
    "effective_branch_protection_name": {
      "type": "string",
      "description": "EffectiveBranchProtectionName is the name of the effective branch protection rule"
    },
    "enable_status_check": {
      "type": "boolean",
      "description": "EnableStatusCheck indicates if status checks are enabled"
    },
    "name": {
      "type": "string",
      "description": "Name is the branch name"
    },
    "protected": {
      "type": "boolean",
      "description": "Protected indicates if the branch is protected"
    },
    "required_approvals": {
      "type": "integer",
      "description": "RequiredApprovals is the number of required approvals for pull requests",
      "format": "int64"
    },
    "status_check_contexts": {
      "type": "array",
      "description": "StatusCheckContexts contains the list of required status check contexts"
    },
    "user_can_merge": {
      "type": "boolean",
      "description": "UserCanMerge indicates if the current user can merge to this branch"
    },
    "user_can_push": {
      "type": "boolean",
      "description": "UserCanPush indicates if the current user can push to this branch"
    }
  }
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/gitea-rest-api-branch-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.