---
title: "Update OIDC session config"
method: PATCH
path: "/api/configs/oidc/session"
tags: ["Configs"]
---

# Update OIDC session config

`PATCH /api/configs/oidc/session`

Update the OIDC session configuration for the tenant. This method performs a partial update. If the configuration does not exist, it will be created.

## Request body

- object
  - `ttl` number

## Response `200`

The updated OIDC session configuration.

- object
  - `ttl` number, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/revisions/a163dc77d842/schema)
