---
title: "Create an organization"
method: POST
path: "/admin/users/{username}/orgs"
tags: ["Administration"]
---

# Create an organization

`POST /admin/users/{username}/orgs`

Requires the authenticated user to be a site administrator.

## Path parameters

- `username` string, required

## Request body

- object
  - `username` string, required
  - `full_name` string
  - `description` string
  - `website` string
  - `location` string

## Response `201`

Created

- Organization
  - `id` integer
  - `username` string
  - `full_name` string
  - `avatar_url` string
  - `description` string
  - `website` string
  - `location` string

## 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)
