---
title: "Update workspace TTL settings"
method: PUT
path: "/workspaces/current/ttl-settings"
tags: ["TTL Settings"]
---

# Update workspace TTL settings

`PUT /workspaces/current/ttl-settings`

Update the longlived trace TTL for a workspace.

## Request body

- TtlSettingsUpdateTTLSettingsRequest
  - `longlived_ttl_days` integer

## Response `200`

OK

- TtlSettingsTTLSettingsResponse
  - `is_custom` boolean
  - `longlived_ttl_days` integer
  - `tenant_id` string

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/langchain-ai/apis/langsmith.md) · [All operations](https://skmtc.net/langchain-ai/apis/langsmith/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langchain-ai/langsmith/revisions/a0acb3a6a101/schema)
