Create a team
POST /teams
Requires teams.create. The optional parent_ids array
attaches the new team as a child of each listed parent (the
DAG case — a team can report to multiple parents). Cycle
rejection is enforced by the team_parents trigger.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Optional list of teams to link as parents. Each insert fires the cycle-rejection trigger; the first one that would close a cycle returns 409.
Responses
Section titled “ Responses ”Team created
object
URL-friendly identifier, unique per origin server. Used in display and (eventually) federation actor URIs.
Example
aurora-rndExample
Aurora R&DSet on rows mirroring a federated team. NULL = locally owned.
Direct parent teams (single hop). Empty for root teams.
Closure-walked ancestors live behind the listTeams
ancestor filter; this field is just the edges out of
the current node.
object
Malformed request
object
Human-readable error summary
Example
the request could not be completedAuthentication required, missing, or invalid
object
Human-readable error summary
Example
the request could not be completedExample
{ "error": "authentication required: sign in and retry with a valid session or API token"}Authenticated but missing required capabilities
object
Human-readable error summary
Example
the request could not be completedResource not found
object
Human-readable error summary
Example
the request could not be completedConflict (slug taken, would create cycle, etc.)
object
Human-readable error summary
Example
the request could not be completedUnexpected server error
object
Human-readable error summary
Example
the request could not be completed