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

# Set Session Title

> Store a conversation's title on the session, so every screen shows it.

Until now the chat generated a title and kept it in the browser's local
storage. Another browser, or a cleared cache, and the conversation was
back to being named by its id -- which is exactly what the evaluation
screen ran into.

Written into ADK's own `state` column with the jsonb merge operator,
which is the very semantics ADK uses itself
(`storage_session.state | state_delta`). The key therefore survives every
later turn, and no ADK write is lost either.

`list_sessions` already returns the state, so nothing has to change on
the read side.



## OpenAPI

````yaml /api-reference/openapi.json put /api/adk/sessions/{agent_name}/{user_id}/{session_id}/title
openapi: 3.1.0
info:
  title: apowerb API
  description: REST API of the apowerb agentic framework (open-source edition).
  version: 0.2.0
  license:
    name: MIT
    url: https://github.com/apowerb/apowerb/blob/main/LICENSE
servers:
  - url: https://api.example.com
    description: Your apowerb instance
  - url: http://localhost:8000
    description: Local stack
security: []
paths:
  /api/adk/sessions/{agent_name}/{user_id}/{session_id}/title:
    put:
      tags:
        - adk
      summary: Set Session Title
      description: >-
        Store a conversation's title on the session, so every screen shows it.


        Until now the chat generated a title and kept it in the browser's local

        storage. Another browser, or a cleared cache, and the conversation was

        back to being named by its id -- which is exactly what the evaluation

        screen ran into.


        Written into ADK's own `state` column with the jsonb merge operator,

        which is the very semantics ADK uses itself

        (`storage_session.state | state_delta`). The key therefore survives
        every

        later turn, and no ADK write is lost either.


        `list_sessions` already returns the state, so nothing has to change on

        the read side.
      operationId: >-
        set_session_title_api_adk_sessions__agent_name___user_id___session_id__title_put
      parameters:
        - name: agent_name
          in: path
          required: true
          schema:
            type: string
            title: Agent Name
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            title: User Id
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            title: Session Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetSessionTitleRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    SetSessionTitleRequest:
      properties:
        title:
          type: string
          title: Title
      type: object
      required:
        - title
      title: SetSessionTitleRequest
    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:
    HTTPBearer:
      type: http
      scheme: bearer

````

## Related topics

- [Generate Title Endpoint](/api-reference/adk/generate-title-endpoint.md)
- [List Sessions](/api-reference/list-sessions.md)
- [Update Session](/api-reference/update-session.md)
- [Get Session](/api-reference/get-session.md)
- [Create Session](/api-reference/create-session.md)
