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

# Update Session

> Update metadata or refresh the expiration of a session

## Request Body

<ParamField body="metadata" type="object">
  New metadata to merge into the session.
</ParamField>

<ParamField body="refresh" type="boolean" default="true">
  Whether to reset the session TTL.
</ParamField>

## Response

Returns the updated [Session Object](/api-reference/sessions/get).
