Rename a team — persists to config, applied on next regen
Persist a team rename.
Fires no regen on its own — the rename applies to the next generated tree. Chain-flattens on write: renaming X→Y where an existing override K→X exists rewrites that to K→Y and still records X→Y, so future lookups are always one hop deep.
Authorizations
API Key or JWT User Token. If using an API Key, set the X-As-User header to act as a specific user. A JWT User Token is always scoped to a specific user.
Body
Rename a team by its slug.
Stored in ContextDocConfig.team_overrides and applied at two points
during generation: the detection seed (so the stability mechanism
remembers the rename) and the post-detection list (so any re-detected
old slug is normalized back to the new one).
Both old_slug and new_slug must match [a-z0-9-]{1,64}. new_name
is optional — omit to keep the display name the LLM picks.
Response
Successful Response