CreateWorkspaceRequest - TypeScript SDK
CreateWorkspaceRequest - TypeScript SDK
CreateWorkspaceRequest type definition
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Example Usage
1 import { CreateWorkspaceRequest } from "@openrouter/sdk/models"; 2 3 let value: CreateWorkspaceRequest = { 4 name: "Production", 5 slug: "production", 6 };
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
defaultImageModel | string | ➖ | Default image model for this workspace | openai/dall-e-3 |
defaultProviderSort | string | ➖ | Default provider sort preference (price, throughput, latency, exacto) | price |
defaultTextModel | string | ➖ | Default text model for this workspace | openai/gpt-4o |
description | string | ➖ | Description of the workspace | Production environment workspace |
ioLoggingApiKeyIds | number[] | ➖ | Optional array of API key IDs to filter I/O logging | <nil> |
ioLoggingSamplingRate | number | ➖ | Sampling rate for I/O logging (0.0001-1) | 1 |
isDataDiscountLoggingEnabled | boolean | ➖ | Whether data discount logging is enabled | true |
isObservabilityBroadcastEnabled | boolean | ➖ | Whether broadcast is enabled | false |
isObservabilityIoLoggingEnabled | boolean | ➖ | Whether private logging is enabled | false |
name | string | ✔️ | Name for the new workspace | Production |
slug | string | ✔️ | URL-friendly slug (lowercase alphanumeric and hyphens only) | production |