---
title: "PUT /sessions/{sessionIdentifier}/"
method: PUT
path: "/sessions/{sessionIdentifier}/"
---

# PUT /sessions/{sessionIdentifier}/

`PUT /sessions/{sessionIdentifier}/`

Updates the metadata or encryption settings of a session. For more information about sessions, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html">Store and retrieve conversation history and context with Amazon Bedrock sessions</a>.

## Path parameters

- `sessionIdentifier` string, required

## Request body

- object
  - `sessionMetadata` object — A map of key-value pairs containing attributes to be persisted across the session. For example the user's ID, their language preference, and the type of device they are using.

## Response `200`

Success

- UpdateSessionResponse
  - `createdAt` string, date-time, required — The timestamp for when the session was created.
  - `lastUpdatedAt` string, date-time, required — The timestamp for when the session was last modified.
  - `sessionArn` string, required — The Amazon Resource Name (ARN) of the session that was updated.
  - `sessionId` string, required — The unique identifier of the session you updated.
  - `sessionStatus` 'ACTIVE' | 'EXPIRED' | 'ENDED', required — The status of the session you updated.

## Other responses

- `480` — ConflictException
- `481` — ResourceNotFoundException
- `482` — ValidationException
- `483` — InternalServerException
- `484` — ThrottlingException
- `485` — AccessDeniedException

---

[API](https://skmtc.net/aws/apis/bedrock-agent-runtime.md) · [All operations](https://skmtc.net/aws/apis/bedrock-agent-runtime/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/bedrock-agent-runtime/versions/fe358131c0ad/schema)
