---
title: "Patch Session"
method: PATCH
path: "/sessions/{session_id}"
tags: ["sessions"]
---

# Patch Session

`PATCH /sessions/{session_id}`

## Path parameters

- `session_id` string, uuid, required

## Request body

- PatchSessionRequest — Payload for patching a session
  - `situation` string, nullable
  - `system_template` string, nullable
  - `render_templates` boolean
  - `token_budget` integer, nullable
  - `context_overflow` 'truncate' | 'adaptive', nullable
  - `auto_run_tools` boolean
  - `forward_tool_calls` boolean
  - `recall_options` union
    - VectorDocSearchUpdate
      - `limit` integer
      - `lang` string
      - `metadata_filter` object
      - `num_search_messages` integer
      - `max_query_length` integer
      - `include_embeddings` boolean
      - `mode` 'vector'
      - `confidence` number
      - `mmr_strength` number
    - TextOnlyDocSearchUpdate
      - `limit` integer
      - `lang` string
      - `metadata_filter` object
      - `num_search_messages` integer
      - `max_query_length` integer
      - `include_embeddings` boolean
      - `mode` 'text'
      - `trigram_similarity_threshold` number
    - HybridDocSearchUpdate
      - `limit` integer
      - `lang` string
      - `metadata_filter` object
      - `num_search_messages` integer
      - `max_query_length` integer
      - `include_embeddings` boolean
      - `mode` 'hybrid'
      - `confidence` number
      - `alpha` number
      - `mmr_strength` number
      - `trigram_similarity_threshold` number
      - `k_multiplier` integer
  - `metadata` object, nullable

## Response `200`

Successful Response

- Session
  - `situation` string, nullable
  - `system_template` string, nullable
  - `summary` string, nullable
  - `render_templates` boolean
  - `token_budget` integer, nullable
  - `context_overflow` 'truncate' | 'adaptive', nullable
  - `auto_run_tools` boolean
  - `forward_tool_calls` boolean
  - `recall_options` union
    - VectorDocSearch
      - `limit` integer
      - `lang` string
      - `metadata_filter` object
      - `num_search_messages` integer
      - `max_query_length` integer
      - `include_embeddings` boolean
      - `mode` 'vector'
      - `confidence` number
      - `mmr_strength` number
    - TextOnlyDocSearch
      - `limit` integer
      - `lang` string
      - `metadata_filter` object
      - `num_search_messages` integer
      - `max_query_length` integer
      - `include_embeddings` boolean
      - `mode` 'text'
      - `trigram_similarity_threshold` number
    - HybridDocSearch
      - `limit` integer
      - `lang` string
      - `metadata_filter` object
      - `num_search_messages` integer
      - `max_query_length` integer
      - `include_embeddings` boolean
      - `mode` 'hybrid'
      - `confidence` number
      - `alpha` number
      - `mmr_strength` number
      - `trigram_similarity_threshold` number
      - `k_multiplier` integer
  - `id` string, uuid, required
  - `metadata` object, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `kind` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2025-06-26** `a5693caa5db1` — 6 info
  - added the new optional request property `recall_options/anyOf[subschema #1: VectorDocSearchUpdate]/include_embeddings`
  - added the new optional request property `recall_options/anyOf[subschema #2: TextOnlyDocSearchUpdate]/include_embeddings`
  - added the new optional request property `recall_options/anyOf[subschema #3: HybridDocSearchUpdate]/include_embeddings`
  - added the optional property `recall_options/anyOf[subschema #1: VectorDocSearch]/include_embeddings` to the response with the `200` status
  - …2 more
- **2025-05-12** `088c2ebb8988` — 10 info
  - added the new optional request property `recall_options/anyOf[subschema #2: TextOnlyDocSearchUpdate]/trigram_similarity_threshold`
  - added the new optional request property `recall_options/anyOf[subschema #3: HybridDocSearchUpdate]/k_multiplier`
  - added the new optional request property `recall_options/anyOf[subschema #3: HybridDocSearchUpdate]/trigram_similarity_threshold`
  - the `confidence` request property default value changed from `0` to `0.5`
  - …6 more
- …earlier changes not shown

[Full history](https://skmtc.dev/julep-ai/apis/julep-agents-api/changes/sessions/:session_id/patch.md)

---

[API](https://skmtc.dev/julep-ai/apis/julep-agents-api.md) · [All operations](https://skmtc.dev/julep-ai/apis/julep-agents-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/julep-ai/julep-agents-api/revisions/21c8182519ef/schema)
