---
title: "Update JWT Settings"
method: POST
path: "/api/jwt/settings"
tags: ["JWT"]
---

# Update JWT Settings

`POST /api/jwt/settings`

Update JWT settings for the currently active organization.

## Request body

- LSEJWTSettingsRequest
  - `api_token_ttl_days` integer, required
  - `api_tokens_enabled` boolean — Enable JWT API token authentication for this organization
  - `legacy_api_tokens_enabled` boolean — Enable legacy API token authentication for this organization

## Response `201`

- LSEJWTSettings
  - `api_token_ttl_days` integer, required
  - `api_tokens_enabled` boolean — Enable JWT API token authentication for this organization
  - `legacy_api_tokens_enabled` boolean — Enable legacy API token authentication for this organization

## Changes

- **2026-04-17** `7f42fb54a503` — 1 breaking, 3 info
  - the `api_token_ttl_days` response property's max was increased from `365.00` to `73000.00` for the response status `201`
  - the `api_token_ttl_days` request property's max was increased from `365.00` to `73000.00` (media type: application/json)
  - the `api_token_ttl_days` request property's max was increased from `365.00` to `73000.00` (media type: application/x-www-form-urlencoded)
  - the `api_token_ttl_days` request property's max was increased from `365.00` to `73000.00` (media type: multipart/form-data)

[Change history](https://skmtc.dev/humansignal/apis/label-studio-api/changes/api/jwt/settings/post.md)

---

[API](https://skmtc.dev/humansignal/apis/label-studio-api.md) · [All operations](https://skmtc.dev/humansignal/apis/label-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/humansignal/label-studio-api/revisions/bcbdfd8a482f/schema)
