Update a workspace
Update an existing workspace by ID or slug. Management key required.
Authorizations
API key as bearer token in Authorization header
Path Parameters
The workspace ID (UUID) or slug
1"production"
Body
Default image model for this workspace
"openai/dall-e-3"
Default provider sort preference (price, throughput, latency, exacto)
"price"
Default text model for this workspace
"openai/gpt-4o"
New description for the workspace
500"Updated description"
Optional array of API key IDs to filter I/O logging
null
Sampling rate for I/O logging (0.0001-1)
1
Whether data discount logging is enabled
true
Whether broadcast is enabled
false
Whether private logging is enabled
false
New name for the workspace
1 - 100"Updated Workspace"
New URL-friendly slug (lowercase alphanumeric segments separated by single hyphens, no leading/trailing hyphens)
1 - 50^[a-z0-9]+(?:-[a-z0-9]+)*$"updated-workspace"
Response
Workspace updated successfully
The updated workspace
{
"created_at": "2025-08-24T10:30:00Z",
"created_by": "user_abc123",
"default_image_model": "openai/dall-e-3",
"default_provider_sort": "price",
"default_text_model": "openai/gpt-4o",
"description": "Production environment workspace",
"id": "550e8400-e29b-41d4-a716-446655440000",
"io_logging_api_key_ids": null,
"io_logging_sampling_rate": 1,
"is_data_discount_logging_enabled": true,
"is_observability_broadcast_enabled": false,
"is_observability_io_logging_enabled": false,
"name": "Production",
"slug": "production",
"updated_at": "2025-08-24T15:45:00Z"
}