CumulusDocs
Open Studio
On this page

Update workspace settings

Change the display name or retention policy. Retention updates check the policy version you last read.

Operation ID: tenant_settings.update.

Request

PUT /api/v1/tenant/settings

  • TypeScript SDK: client.tenant_settings.update (path arguments use path).
  • MCP tool: sdk_client_call with operationId: "tenant_settings.update" (path arguments use input.path). Legacy alias: tenant_settings_update. Connect to your authenticated /mcp endpoint with an API key for the same environment.
  • Minimum API key role: admin.
  • Idempotency: No header required; the resource or revision identifies the change.

Read resource IDs from earlier responses and use a key for the same environment.

Request example

Read tenant_settings.get and copy its current retention version into expected_version. Review your retention policy before applying these illustrative periods; shorter periods can make older data eligible for deletion.

Set CUMULUS_BASE_URL to your workspace API URL and CUMULUS_API_KEY to a key for that environment. Example values are synthetic.

cURL

curl
curl --fail-with-body -sS -X PUT "${CUMULUS_BASE_URL%/}/api/v1/tenant/settings" \
  -H "Authorization: Bearer $CUMULUS_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "retention": {
    "recording_days": 30,
    "transcript_days": 90,
    "document_days": 365,
    "expected_version": 0
  }
}'

TypeScript

typescript
import { Cumulus } from "@cumulus/sdk";

const baseUrl = process.env.CUMULUS_BASE_URL;
const apiKey = process.env.CUMULUS_API_KEY;
if (!baseUrl || !apiKey) throw new Error("Set CUMULUS_BASE_URL and CUMULUS_API_KEY");
const client = new Cumulus({ baseUrl, apiKey });

const response = await client.tenant_settings.update({
  "body": {
    "retention": {
      "recording_days": 30,
      "transcript_days": 90,
      "document_days": 365,
      "expected_version": 0
    }
  }
});

Input schema

Path, query and header parameters

No path or query parameters.

JSON request body

FieldType or valuesRequiredDescription and limits
display_namestring or nullOptionalminLength: 1. maxLength: 128.
retentionobjectOptional—
retention.recording_daysintegerRequiredAt least 1. At most 365.
retention.transcript_daysintegerRequiredAt least 1. At most 365.
retention.document_daysinteger or nullRequiredAt least 1. At most 365.
retention.expected_versionintegerRequiredAt least 0. At most 9007199254740991.
Complete OpenAPI schema
OpenAPI JSON
{
  "parameters": [],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/TenantSettingsUpdateRequest"
        }
      }
    }
  }
}

Responses

HTTP 200

Rename the organization and/or change retention (retention is a version compare-and-set)

application/json

FieldType or valuesRequiredDescription and limits
namestringRequiredminLength: 1.
display_namestring or nullRequired—
retentionobjectRequired—
retention.recording_daysintegerRequiredAt least 1. At most 3650.
retention.transcript_daysintegerRequiredAt least 1. At most 3650.
retention.document_daysinteger or nullRequiredAt least 1. At most 3650.
retention.source"platform_default" · "tenant"Required—
retention.versionintegerRequiredAt least 0. At most 9007199254740991.

Error responses

HTTPDescription
4XXTyped error (ApiError)
5XXTyped error (ApiError)

Errors use the shared error envelope. Inspect error.code, retryable, outcome and details before retrying.

Complete OpenAPI schema
OpenAPI JSON
{
  "200": {
    "description": "Rename the organization and/or change retention (retention is a version compare-and-set)",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/TenantSettingsGetResponse200"
        }
      }
    }
  },
  "4XX": {
    "description": "Typed error (ApiError)",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/ApiError"
        }
      }
    }
  },
  "5XX": {
    "description": "Typed error (ApiError)",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/ApiError"
        }
      }
    }
  }
}

Referenced schemas

Expand the complete OpenAPI definitions for integrations that generate their own clients.

Complete OpenAPI schema
OpenAPI JSON
{
  "components": {
    "schemas": {
      "TenantSettingsUpdateRequest": {
        "type": "object",
        "properties": {
          "display_name": {
            "nullable": true,
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "retention": {
            "type": "object",
            "properties": {
              "recording_days": {
                "type": "integer",
                "minimum": 1,
                "maximum": 365
              },
              "transcript_days": {
                "type": "integer",
                "minimum": 1,
                "maximum": 365
              },
              "document_days": {
                "nullable": true,
                "type": "integer",
                "minimum": 1,
                "maximum": 365
              },
              "expected_version": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "recording_days",
              "transcript_days",
              "document_days",
              "expected_version"
            ],
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "TenantSettingsGetResponse200": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "display_name": {
            "nullable": true,
            "type": "string"
          },
          "retention": {
            "type": "object",
            "properties": {
              "recording_days": {
                "type": "integer",
                "minimum": 1,
                "maximum": 3650
              },
              "transcript_days": {
                "type": "integer",
                "minimum": 1,
                "maximum": 3650
              },
              "document_days": {
                "nullable": true,
                "type": "integer",
                "minimum": 1,
                "maximum": 3650
              },
              "source": {
                "type": "string",
                "enum": [
                  "platform_default",
                  "tenant"
                ]
              },
              "version": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "recording_days",
              "transcript_days",
              "document_days",
              "source",
              "version"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "name",
          "display_name",
          "retention"
        ],
        "additionalProperties": false
      },
      "ApiError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "unauthenticated",
                  "forbidden",
                  "not_found",
                  "conflict",
                  "invalid_request",
                  "idempotency_conflict",
                  "policy_denied",
                  "capability_unavailable",
                  "provider_unavailable",
                  "knowledge_unavailable",
                  "publication_invalid",
                  "run_not_active",
                  "rate_limited",
                  "outcome_unknown",
                  "internal"
                ]
              },
              "message": {
                "type": "string"
              },
              "retryable": {
                "type": "boolean"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "none",
                  "unknown"
                ]
              },
              "details": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "code",
              "message",
              "retryable",
              "outcome"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      }
    }
  }
}

Errors and recovery

See API error handling and Troubleshooting.

Content version 626a3768Customer SDKMarkdown source
Update workspace settings · Cumulus developer docs