POST /api/organizations/{org_id}/profiles/{name}/rename
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.
Parameters
| Name | In | Type | Required | Description |
|---|
org_id | path | `string | null` | yes |
name | path | string | yes | — |
Request body
| Field | Type | Required | Description |
|---|
new_name | string | yes | — |
Responses
| Status | Description |
|---|
200 | Successful Response |
422 | Validation Error |
Response body
| Field | Type | Required | Description |
|---|
name | string | yes | — |
message | string | yes | — |
Operation ID: rename_profile_api_organizations__org_id__profiles__name__rename_post