POST /api/v1/admin/orgs/:slug/projects
This page is auto-generated from
src/admin/routes.ts. Do not edit by hand — seedocs/dev/docs-auto-sync.md.
:warning: Heuristic extraction — not a contract. Response shapes below are mined from
c.json(...)literals in the handler via an AST walker. Computed fields, ternaries, and non-literal returns are shown as placeholders. Refer to the linked source file for the authoritative behaviour.
POST /api/v1/admin/orgs/:slug/projects
Section titled “POST /api/v1/admin/orgs/:slug/projects”Authentication
Section titled “Authentication”Requires the following capability(ies):
projects:w
Middleware
Section titled “Middleware”Other middleware observed on this route (heuristic):
requireCapabilityadminBodyLimit
Description
Section titled “Description”POST /api/v1/admin/orgs/:slug/projects — create a project. Body:
{ “name”: “team-payments”, “teamId”?: ”…”, “policies”?: teamId (optional) binds the project to a team in the same org, so the
team’s policy patch is merged between org and project at request time. A
teamId belonging to a different org is rejected.
#336 — gated on projects:w.
Responses
Section titled “Responses”HTTP 400
Section titled “HTTP 400”{ "error": "Invalid JSON body"}HTTP 400
Section titled “HTTP 400”{ "error": "Body must be a JSON object"}HTTP 400
Section titled “HTTP 400”{ "error": "name is required (1..128 chars)"}HTTP 404
Section titled “HTTP 404”{ "error": "Org not found"}HTTP 400
Section titled “HTTP 400”{ "error": "teamId must be a string"}HTTP 404
Section titled “HTTP 404”{ "error": "Team not found in this org"}HTTP 400
Section titled “HTTP 400”{ "error": <member-expr>}HTTP 409
Section titled “HTTP 409”{ "error": "Project with that name already exists in this org"}HTTP 201
Section titled “HTTP 201”{ "project": <member-expr>}Source
Section titled “Source”- File:
src/admin/routes.ts - Line: 4549