Gitea · Schema

Team

Team represents a team in an organization

GitSource ControlDevOpsCI/CDCode HostingOpen SourceSelf HostedPackage RegistryIssue TrackingPull Requests

Properties

Name Type Description
can_create_org_repo boolean Whether the team can create repositories in the organization
description string The description of the team
id integer The unique identifier of the team
includes_all_repositories boolean Whether the team has access to all repositories in the organization
name string The name of the team
organization object
permission string
units array
units_map object
View JSON Schema on GitHub

JSON Schema

gitea-rest-api-team-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/gitea/main/json-schema/gitea-rest-api-team-schema.json",
  "title": "Team",
  "description": "Team represents a team in an organization",
  "type": "object",
  "properties": {
    "can_create_org_repo": {
      "description": "Whether the team can create repositories in the organization",
      "type": "boolean",
      "x-go-name": "CanCreateOrgRepo"
    },
    "description": {
      "description": "The description of the team",
      "type": "string",
      "x-go-name": "Description"
    },
    "id": {
      "description": "The unique identifier of the team",
      "type": "integer",
      "format": "int64",
      "x-go-name": "ID"
    },
    "includes_all_repositories": {
      "description": "Whether the team has access to all repositories in the organization",
      "type": "boolean",
      "x-go-name": "IncludesAllRepositories"
    },
    "name": {
      "description": "The name of the team",
      "type": "string",
      "x-go-name": "Name"
    },
    "organization": {
      "$ref": "#/$defs/Organization"
    },
    "permission": {
      "type": "string",
      "enum": [
        "none",
        "read",
        "write",
        "admin",
        "owner"
      ],
      "x-go-name": "Permission"
    },
    "units": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "x-go-name": "Units",
      "example": [
        "repo.code",
        "repo.issues",
        "repo.ext_issues",
        "repo.wiki",
        "repo.pulls",
        "repo.releases",
        "repo.projects",
        "repo.ext_wiki"
      ]
    },
    "units_map": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "x-go-name": "UnitsMap",
      "example": {
        "repo.code": "read",
        "repo.ext_issues": "none",
        "repo.ext_wiki": "none",
        "repo.issues": "write",
        "repo.projects": "none",
        "repo.pulls": "owner",
        "repo.releases": "none",
        "repo.wiki": "admin"
      }
    }
  },
  "x-go-package": "code.gitea.io/gitea/modules/structs",
  "$defs": {
    "Organization": {
      "description": "Organization represents an organization",
      "type": "object",
      "properties": {
        "avatar_url": {
          "description": "The URL of the organization's avatar",
          "type": "string",
          "x-go-name": "AvatarURL"
        },
        "description": {
          "description": "The description of the organization",
          "type": "string",
          "x-go-name": "Description"
        },
        "email": {
          "description": "The email address of the organization",
          "type": "string",
          "x-go-name": "Email"
        },
        "full_name": {
          "description": "The full display name of the organization",
          "type": "string",
          "x-go-name": "FullName"
        },
        "id": {
          "description": "The unique identifier of the organization",
          "type": "integer",
          "format": "int64",
          "x-go-name": "ID"
        },
        "location": {
          "description": "The location of the organization",
          "type": "string",
          "x-go-name": "Location"
        },
        "name": {
          "description": "The name of the organization",
          "type": "string",
          "x-go-name": "Name"
        },
        "repo_admin_change_team_access": {
          "description": "Whether repository administrators can change team access",
          "type": "boolean",
          "x-go-name": "RepoAdminChangeTeamAccess"
        },
        "username": {
          "description": "username of the organization\ndeprecated",
          "type": "string",
          "x-go-name": "UserName"
        },
        "visibility": {
          "description": "The visibility level of the organization (public, limited, private)",
          "type": "string",
          "x-go-name": "Visibility"
        },
        "website": {
          "description": "The website URL of the organization",
          "type": "string",
          "x-go-name": "Website"
        }
      },
      "x-go-package": "code.gitea.io/gitea/modules/structs"
    }
  }
}