---
title: "Upsert workspace configuration"
method: PUT
path: "/v1/private/workspaces/configurations"
tags: ["Workspaces"]
---

# Upsert workspace configuration

`PUT /v1/private/workspaces/configurations`

Upsert workspace configuration

## Request body

- WorkspaceConfiguration
  - `timeout_to_mark_thread_as_inactive` string — Duration in ISO-8601 format (e.g., PT30M for 30 minutes, PT2H for 2 hours, P1D for 1 day). Minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days.
  - `truncation_on_tables` boolean — Enable or disable data truncation in table views. When disabled, the frontend will limit pagination to prevent performance issues. Default: true (truncation enabled).
  - `color_map` object — Workspace-level color map. Maps label names to hex color values (e.g. #FF0000). Max 10000 entries.

## Response `200`

Configuration Updated

- WorkspaceConfiguration
  - `timeout_to_mark_thread_as_inactive` string — Duration in ISO-8601 format (e.g., PT30M for 30 minutes, PT2H for 2 hours, P1D for 1 day). Minimum precision supported is seconds, please use a duration with seconds precision or higher. Also, the max duration allowed is 7 days.
  - `truncation_on_tables` boolean — Enable or disable data truncation in table views. When disabled, the frontend will limit pagination to prevent performance issues. Default: true (truncation enabled).
  - `color_map` object — Workspace-level color map. Maps label names to hex color values (e.g. #FF0000). Max 10000 entries.

## Other responses

- `400` — Bad Request
- `422` — Unprocessable Content

---

[API](https://skmtc.net/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.net/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/versions/4ed2fbc97cc3/schema)
