Skip to content

PATCH /api/v1/admin/orgs/:slug/projects/:id/team

This page is auto-generated from src/admin/routes.ts. Do not edit by hand — see docs/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.

PATCH /api/v1/admin/orgs/:slug/projects/:id/team

Section titled “PATCH /api/v1/admin/orgs/:slug/projects/:id/team”

Requires the following capability(ies):

  • projects:w

Other middleware observed on this route (heuristic):

  • requireCapability
  • adminBodyLimit

PATCH /api/v1/admin/orgs/:slug/projects/:id/team — change a project’s team assignment. Body: { “teamId”: ”…” | null }. Setting null detaches the project from any team (it then inherits org policy directly). A teamId belonging to a different org is rejected. #336 — gated on projects:w.

{
"error": "Org not found"
}
{
"error": "Invalid JSON body"
}
{
"error": "Body must be a JSON object"
}
{
"error": "teamId is required (string or null)"
}
{
"error": "teamId must be a string or null"
}
{
"error": "Team not found in this org"
}
{
"error": "Project not found for this org"
}
{
"id": <member-expr>,
"teamId": <member-expr>
}
  • File: src/admin/routes.ts
  • Line: 4684