Skip to main content

Switch conversation profile

POST /api/v1/app-conversations/{conversation_id}/switch_profile

Switch the running conversation's LLM to a saved profile. Profiles live in the app-server's user settings, not on the sandbox FS, so we resolve the profile here and hand the LLM directly to the agent-server's switch_llm endpoint.

Parameters

NameInTypeRequiredDescription
conversation_idpathstringyes

Request body

FieldTypeRequiredDescription
profile_namestringyesName of a profile previously saved via /api/v1/settings/profiles.

Responses

StatusDescription
200Successful Response
404Conversation, sandbox, or profile not found
409Sandbox is not running
422Validation Error
502Agent server returned an error

Response body

FieldTypeRequiredDescription
successbooleanno

Operation ID: switch_conversation_profile_api_v1_app_conversations__conversation_id__switch_profile_post