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

# PATCH /sessions/{sessionIdentifier}

`PATCH /sessions/{sessionIdentifier}`

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

## Path parameters

- `sessionIdentifier` string, required

## Response `200`

Success

- EndSessionResponse
  - `sessionArn` string, required — The Amazon Resource Name (ARN) of the session you ended.
  - `sessionId` string, required — The unique identifier of the session you ended.
  - `sessionStatus` 'ACTIVE' | 'EXPIRED' | 'ENDED', required — The current status of the session you ended.

## Other responses

- `480` — ResourceNotFoundException
- `481` — ConflictException
- `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)
