> ## Documentation index
> Fetch the complete documentation index at: https://docs.rxresu.me/llms.txt
> Ask it with GET https://docs.rxresu.me/ask?q=<keywords or question>. Short keywords rank best.
> Use these to discover all available pages before exploring further.

# Switch a conversation's model or rename it

`PATCH /agent/threads/{id}`

## OpenAPI

````yaml spec.json patch /agent/threads/{id}
openapi: 3.1.1
info:
  title: Reactive Resume
  version: 6.0.7
  description: "Reactive Resume API. Mutations do not support Idempotency-Key. Do
    not automatically retry POST, PUT, PATCH or DELETE requests after a timeout:
    first read the resource to determine whether the operation succeeded.
    Existing enum values and response shapes are retained for compatibility."
  license:
    name: MIT
    url: https://github.com/reactive-resume/reactive-resume/blob/main/LICENSE
  contact:
    name: Amruth Pillai
    email: amruth@rxresu.me
    url: https://amruthpillai.com
servers:
  - url: https://rxresu.me/api/openapi
security:
  - apiKey: []
  - bearerAuth: []
  - cookieAuth: []
paths:
  /agent/threads/{id}:
    patch:
      operationId: updateAgentThread
      summary: Switch a conversation's model or rename it
      tags:
        - Agent
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                aiProviderId:
                  type: string
                  minLength: 1
                title:
                  type: string
                  minLength: 1
                  maxLength: 200
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  title:
                    type: string
                  status:
                    type: string
                  scope:
                    enum:
                      - document
                      - application
                      - career
                    type: string
                  applicationId:
                    anyOf:
                      - type: string
                      - type: "null"
                  sourceResumeId:
                    anyOf:
                      - type: string
                      - type: "null"
                  workingResumeId:
                    anyOf:
                      - type: string
                      - type: "null"
                  coverLetterId:
                    anyOf:
                      - type: string
                      - type: "null"
                  aiProviderId:
                    anyOf:
                      - type: string
                      - type: "null"
                  resumeName:
                    anyOf:
                      - type: string
                      - type: "null"
                  coverLetterName:
                    anyOf:
                      - type: string
                      - type: "null"
                  providerLabel:
                    anyOf:
                      - type: string
                      - type: "null"
                  editsProposed:
                    type: number
                  editsAccepted:
                    type: number
                  activeRunId:
                    anyOf:
                      - type: string
                      - type: "null"
                  lastMessageAt:
                    type: string
                    format: date-time
                    x-native-type: date
                  archivedAt:
                    anyOf:
                      - type: string
                        format: date-time
                        x-native-type: date
                      - type: "null"
                  deletedAt:
                    anyOf:
                      - type: string
                        format: date-time
                        x-native-type: date
                      - type: "null"
                  createdAt:
                    type: string
                    format: date-time
                    x-native-type: date
                  updatedAt:
                    type: string
                    format: date-time
                    x-native-type: date
                required:
                  - id
                  - title
                  - status
                  - scope
                  - applicationId
                  - sourceResumeId
                  - workingResumeId
                  - coverLetterId
                  - aiProviderId
                  - resumeName
                  - coverLetterName
                  - providerLabel
                  - editsProposed
                  - editsAccepted
                  - activeRunId
                  - lastMessageAt
                  - archivedAt
                  - deletedAt
                  - createdAt
                  - updatedAt
        default:
          description: Structured API error. See status and code; do not branch on message
            text.
          content:
            application/json:
              schema:
                type: object
                required:
                  - defined
                  - code
                  - status
                  - message
                properties:
                  defined:
                    type: boolean
                  code:
                    type: string
                  status:
                    type: integer
                  message:
                    type: string
                  data: {}
      security:
        - apiKey: []
        - bearerAuth: []
        - cookieAuth: []
      x-codeSamples:
        - lang: bash
          label: cURL
          source: "curl --request PATCH
            \"https://rxresu.me/api/openapi/agent/threads/<id>\" --header
            \"x-api-key: <api-key>\" --header \"Content-Type: application/json\"
            --data '{}'"
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: An OAuth access token issued by this instance for its API/MCP resource.
    cookieAuth:
      type: apiKey
      in: cookie
      name: better-auth.session_token
      description: Browser session (secure deployments use the __Secure- prefix).
        Cookie requests must originate from this instance.
    apiKey:
      type: apiKey
      name: x-api-key
      in: header
      description: The API key to authenticate requests.
````
