Workspaces

Update Workspace Model

Update a specific model within a workspace .

HTTP Request

POST /api/v1/workspaces/{workspaceId}/{modelId}

Path Parameters

ParameterTypeRequiredDescription
workspaceIdUUIDYesThe ID of the workspace
modelIdUUIDYesThe ID of the model to update

Request Body

FieldTypeDescription
addedContextstringAdditional context for the model
systemInstructionsstringSystem instructions for the model
temperaturedoubleTemperature setting for the model
maxTokensintegerMaximum number of tokens
topPdoubleTop P setting for the model
nintegerN value for the model
frequencyPenaltydoubleFrequency penalty setting
presencePenaltydoublePresence penalty setting
logitBiasobjectLogit 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

ParameterTypeRequiredDescription
workspaceIdUUIDYesThe 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

ParameterTypeRequiredDescription
workspaceIdUUIDYesThe ID for the new workspace

Request Body

FieldTypeDescription
modelIdsarray of UUIDsIDs of models to include in the workspace
namestringName of the workspace
chatHistoryTypestringType of chat history (TEAM or USER)
contextTypestringType of context (SHARED or PRIVATE)
sharingTypestringType 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

ParameterTypeRequiredDescription
workspaceIdUUIDYesThe 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.