---
title: "Create a team"
method: POST
path: "/admin/orgs/{orgname}/teams"
tags: ["Administration"]
---

# Create a team

`POST /admin/orgs/{orgname}/teams`

Requires the authenticated user to be a site administrator.

## Path parameters

- `orgname` string, required

## Request body

- object
  - `name` string, required
  - `description` string
  - `permission` 'read' | 'write' | 'admin'

## Response `201`

Created

- Team
  - `id` integer
  - `name` string
  - `description` string
  - `permission` 'read' | 'write' | 'admin' | 'owner'

## Other responses

- `404` — Resource not found.
- `422` — Validation error.

---

[API](https://skmtc.net/gogs/apis/gogs-api.md) · [All operations](https://skmtc.net/gogs/apis/gogs-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gogs/gogs-api/revisions/87e2da32266c/schema)
