Save profile
POST /api/v1/settings/profiles/{name}
Save an LLM configuration as a named profile. If request.llm is supplied, it is saved as the profile's config. Otherwise the current agent_settings.llm is snapshotted. Existing profiles with the same name are overwritten. Runs inside a per-user lock to prevent lost updates between concurrent profile writes. Returns 409 if the user is already at the profile cap (:data:MAX_PROFILES_PER_USER).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name | path | string | yes | — |
Responses
| Status | Description |
|---|---|
201 | Successful Response |
422 | Validation Error |
Response body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | — |
message | string | yes | — |
Operation ID: save_profile_api_v1_settings_profiles__name__post