Update Workspace Model
Update a specific model within a workspace .
HTTP Request
POST /api/v1/workspaces/{workspaceId}/{modelId}
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | UUID | Yes | The ID of the workspace |
| modelId | UUID | Yes | The ID of the model to update |
Request Body
| Field | Type | Description |
|---|---|---|
| addedContext | string | Additional context for the model |
| systemInstructions | string | System instructions for the model |
| temperature | double | Temperature setting for the model |
| maxTokens | integer | Maximum number of tokens |
| topP | double | Top P setting for the model |
| n | integer | N value for the model |
| frequencyPenalty | double | Frequency penalty setting |
| presencePenalty | double | Presence penalty setting |
| logitBias | object | Logit bias settings |
Response
Returns a WorkspaceModel object on success.
Get Workspace
Retrieve details of a specific workspace.
HTTP Request
GET /api/v1/workspaces/{workspaceId}
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | UUID | Yes | The ID of the workspace to retrieve |
Response
Returns a Workspace object on success.
Add Workspace
Add a new workspace.
HTTP Request
POST /api/v1/workspaces/{workspaceId}
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | UUID | Yes | The ID for the new workspace |
Request Body
| Field | Type | Description |
|---|---|---|
| modelIds | array of UUIDs | IDs of models to include in the workspace |
| name | string | Name of the workspace |
| chatHistoryType | string | Type of chat history (TEAM or USER) |
| contextType | string | Type of context (SHARED or PRIVATE) |
| sharingType | string | Type of sharing (TEAM or PRIVATE) |
Response
Returns a Workspace object on success.
Delete Workspace
Delete a specific workspace.
HTTP Request
DELETE /api/v1/workspaces/{workspaceId}
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | UUID | Yes | The ID of the workspace to delete |
Response
Returns a 200 OK status on success.
Get Workspaces
Retrieve a list of all workspaces.
HTTP Request
GET /api/v1/workspaces
Response
Returns an array of Workspace objects on success.
Add Workspace (without ID)
Add a new workspace without specifying an ID.
HTTP Request
POST /api/v1/workspaces
Request Body
Same as the "Add Workspace" endpoint.
Response
Returns a Workspace object on success.
