v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1433660423.8 KB

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

put/sessions/{sessionIdentifier}/

Path parameters

sessionIdentifierstring required

The unique identifier of the session to modify. You can specify either the session's <code>sessionId</code> or its Amazon Resource Name (ARN).

Request body

sessionMetadataobject

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

Success

createdAtstring date-time required

The timestamp for when the session was created.

lastUpdatedAtstring date-time required

The timestamp for when the session was last modified.

sessionArnstring required

The Amazon Resource Name (ARN) of the session that was updated.

sessionIdstring required

The unique identifier of the session you updated.

sessionStatus'ACTIVE' | 'EXPIRED' | 'ENDED' required

The status of the session you updated.