Rename Profile
Rename an LLM profile, cascading the rename to any Agent Profiles that reference it.
The SDK rename_llm_profile renames the LLM profile and repoints every
agent_profiles.*.llm_profile_ref == name to new_name under the org
row lock, so a referencing Agent Profile never dangles. Both collections are
written back in the same transaction.
Authorizations
Body
Request body for renaming a profile.
new_name is constrained to PROFILE_NAME_PATTERN because
rename_llm_profile (the SDK FK-cascade helper backing this endpoint)
validates the new name against that same pattern before renaming and
repointing any referencing Agent Profiles — a name outside it always 422s
there. Declaring the constraint here makes the schema honest and gives a
field-level 422 instead of one raised deep inside the handler. save
(create/update) is intentionally left permissive: it never calls the FK
helper, so it has no such requirement.
1 - 64^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$
