---
title: "PATCH /assistants/{assistantId}/sessions/{sessionId}/data"
method: PATCH
path: "/assistants/{assistantId}/sessions/{sessionId}/data"
---

# PATCH /assistants/{assistantId}/sessions/{sessionId}/data

`PATCH /assistants/{assistantId}/sessions/{sessionId}/data`

Updates the data stored on an Amazon Q in Connect Session.

## Path parameters

- `assistantId` string, required
- `sessionId` string, required

## Request body

- object
  - `namespace` 'Custom' — The namespace into which the session data is stored. Supported namespaces are: Custom
  - `data` RuntimeSessionData[], required — The data stored on the Amazon Q in Connect Session.
    - `key` string, password, required — The key of the data stored on the session.
    - `value` object, required — The value of the data stored on the session.
      - `stringValue` string, password — The string value of the data stored on the session.

## Response `200`

Success

- UpdateSessionDataResponse
  - `sessionArn` string, required — The Amazon Resource Name (ARN) of the session.
  - `sessionId` string, required — The identifier of the session.
  - `namespace` 'Custom', required — The namespace into which the session data is stored. Supported namespaces are: Custom
  - `data` RuntimeSessionData[], required — Data stored in the session.
    - `key` string, password, required — The key of the data stored on the session.
    - `value` object, required — The value of the data stored on the session.
      - `stringValue` string, password — The string value of the data stored on the session.

## Other responses

- `480` — ValidationException
- `481` — UnauthorizedException
- `482` — AccessDeniedException
- `483` — ResourceNotFoundException

---

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