Skip to main content

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​

NameInTypeRequiredDescription
namepathstringyes—

Responses​

StatusDescription
201Successful Response
422Validation Error

Response body​

FieldTypeRequiredDescription
namestringyes—
messagestringyes—

Operation ID: save_profile_api_v1_settings_profiles__name__post