> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openhands.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Switch Conversation 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.



## OpenAPI

````yaml /openapi/openhands-cloud.json post /api/v1/app-conversations/{conversation_id}/switch_profile
openapi: 3.1.0
info:
  title: OpenHands
  description: 'OpenHands: Code Less, Make More'
  version: 0.0.1
servers: []
security: []
paths:
  /api/v1/app-conversations/{conversation_id}/switch_profile:
    post:
      tags:
        - Conversations
      summary: Switch Conversation Profile
      description: |-
        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.
      operationId: >-
        switch_conversation_profile_api_v1_app_conversations__conversation_id__switch_profile_post
      parameters:
        - name: conversation_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Conversation Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SwitchProfileRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Success'
        '404':
          description: Conversation, sandbox, or profile not found
        '409':
          description: Sandbox is not running
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: Agent server returned an error
      security:
        - APIKeyHeader: []
components:
  schemas:
    SwitchProfileRequest:
      properties:
        profile_name:
          type: string
          minLength: 1
          title: Profile Name
          description: Name of a profile previously saved via /api/v1/settings/profiles.
      type: object
      required:
        - profile_name
      title: SwitchProfileRequest
      description: Request to switch a running conversation's LLM to a saved profile.
    Success:
      properties:
        success:
          type: boolean
          title: Success
          default: true
      type: object
      title: Success
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-Access-Token

````