---
title: "创建组织"
method: POST
path: "/organizations"
tags: ["组织管理"]
---

# 创建组织

`POST /organizations`

创建新的组织，创建者自动成为管理员

## Request body

- GithubComTencentWeKnoraInternalTypesCreateOrganizationRequest
  - `avatar` string — optional avatar URL
  - `description` string
  - `invite_code_validity_days` integer — optional: 0=never, 1, 7, 30; default 7
  - `member_limit` integer — optional: max members; 0=unlimited; default 50
  - `name` string, required

## Response `201`

Created

- object

## Other responses

- `400` — Bad Request

---

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