---
title: "Update an account session"
method: PATCH
path: "/account-sessions/{accountSessionId}"
tags: ["Account Sessions"]
---

# Update an account session

`PATCH /account-sessions/{accountSessionId}`

## Request

- Base URL: `https://api-staging.fanheroapi.com`
- URL: `https://api-staging.fanheroapi.com/account-sessions/{accountSessionId}`
- Auth: API key in header `apiKey`

## Request body

- UpdateAccountSessionInput
  - `id_token` string, required: The JWT token for authentication
  - `refresh_token` string, required: Refresh JWT token. By default, same as `id_token`.
  - `expires_in` number, required: Number of seconds after wich the session expires. By default, equal to 3600 seconds.

## Response `200`

- object

---

[API](https://skmtc.dev/fanhero/apis/user-management-endpoints.md) - [All operations](https://skmtc.dev/fanhero/apis/user-management-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/fanhero/apis/user-management-endpoints/revisions/3f982670c057?raw)
