v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1433660423.8 KB

Ends the session. After you end a session, you can still access its content but you can’t add to it. To delete the session and it's content, you use the DeleteSession API operation. 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>.

patch/sessions/{sessionIdentifier}

Path parameters

sessionIdentifierstring required

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

Response

Success

sessionArnstring required

The Amazon Resource Name (ARN) of the session you ended.

sessionIdstring required

The unique identifier of the session you ended.

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

The current status of the session you ended.