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

# Update Session

> Endpoint to update an ADK agent session.



## OpenAPI

````yaml /api-reference/openapi.json patch /api/adk/sessions/{agent_name}/{user_id}/{session_id}
openapi: 3.1.0
info:
  title: apowerb API
  description: REST API of the apowerb agentic framework (open-source edition).
  version: 0.1.2
  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}:
    patch:
      tags:
        - adk
      summary: Update Session
      description: Endpoint to update an ADK agent session.
      operationId: >-
        update_session_api_adk_sessions__agent_name___user_id___session_id__patch
      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/UpdateADKAgentSessionRequest'
      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:
    UpdateADKAgentSessionRequest:
      properties:
        agent_name:
          type: string
          title: Agent Name
        user_id:
          type: string
          title: User Id
        session_id:
          type: string
          title: Session Id
        data:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Data
      type: object
      required:
        - agent_name
        - user_id
        - session_id
      title: UpdateADKAgentSessionRequest
      description: Schema for updating an ADK agent session.
    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

- [Update Session](/api-reference/update-session.md)
- [Sessions and runs](/concepts/sessions-and-runs.md)
- [Update Eval](/api-reference/evaluation/update-eval.md)
- [List Sessions](/api-reference/list-sessions.md)
