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

# Rename Session Thread

> Renames a session thread.

Rename a session thread.


## OpenAPI

````yaml PUT /api/assistants/threads/{threadId}
openapi: 3.1.0
info:
  title: Session Thread API
  description: API for managing session threads.
  license:
    name: MIT
    identifier: ''
  version: 1.0.0
servers:
  - url: https://agent-service-511985928315.us-east4.run.app
security:
  - bearerAuth: []
    XEnvoleUserId: []
paths:
  /api/assistants/threads/{threadId}:
    put:
      summary: Rename a session thread
      description: Renames a session thread.
      parameters:
        - name: threadId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionThreadRenameDto'
            example:
              threadName: Project Ideas
      responses:
        '200':
          description: Session thread renamed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionThreadResp'
              example:
                id: thread_456
                threadName: Project Ideas
                agentId: agent_abc
                agentName: Demo Agent
                agentHandle: demo-agent
                rootAgentBuildId: build_123
                lastMessageTime: '2024-01-01T12:00:00Z'
                sessionType: LIVE
        '304':
          description: Not modified.
        '404':
          description: Thread not found.
        '500':
          description: Internal server error.
components:
  schemas:
    SessionThreadRenameDto:
      type: object
      properties:
        threadName:
          type: string
      example:
        threadName: Project Ideas
    SessionThreadResp:
      type: object
      properties:
        id:
          type: string
        threadName:
          type: string
        agentId:
          type: string
        agentName:
          type: string
        agentHandle:
          type: string
        rootAgentBuildId:
          type: string
        lastMessageTime:
          type: string
          format: date-time
        sessionType:
          type: string
          enum:
            - LIVE
            - TESTING
      example:
        id: thread_456
        threadName: Project Ideas
        agentId: agent_abc
        agentName: Demo Agent
        agentHandle: demo-agent
        rootAgentBuildId: build_123
        lastMessageTime: '2024-01-01T12:00:00Z'
        sessionType: LIVE
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    XEnvoleUserId:
      type: apiKey
      in: header
      name: X-Envole-User-Id
      description: External user identifier; not necessarily registered with Envole

````