For AI agents: The documentation index is at https://docs.digitalocean.com/llms.txt. Markdown versions of pages use the same URL with index.html.md in place of the HTML page (for example, append index.html.md to the directory path instead of opening the HTML document).
Usage
client.v2.genAi.workspaces.byWorkspace_uuid(workspace_uuid).put(body: ApiUpdateWorkspaceInputPublic, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiUpdateWorkspaceOutput>
Description
To update a workspace, send a PUT request to /v2/gen-ai/workspaces/{workspace_uuid}. The response body is a JSON object containing the workspace.
Parameters
Path Parameters
workspace_uuid string required
Example: "123e4567-e89b-12d3-a456-426614174000"
Workspace UUID.
Request Body
description string optional
Example: example string
The new description of the workspace
name string optional
Example: example name
The new name of the workspace
workspaceUuid string optional
Example: 123e4567-e89b-12d3-a456-426614174000
Workspace UUID.
Request Sample
Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
createDigitalOceanClient,
DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";
const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);
const response = await client.v2.genAi.workspaces
.byWorkspace_uuid("\"123e4567-e89b-12d3-a456-426614174000\"").put({
description: "example string",
name: "example name",
workspaceUuid: "123e4567-e89b-12d3-a456-426614174000",
});
Response Example
Show Response Example
{
"workspace": {
"agents": [],
"created_at": "2023-01-01T00:00:00Z",
"created_by": "12345",
"created_by_email": "[email protected]",
"deleted_at": "2023-01-01T00:00:00Z",
"description": "example string",
"evaluation_test_cases": [],
"name": "example name",
"updated_at": "2023-01-01T00:00:00Z",
"uuid": "123e4567-e89b-12d3-a456-426614174000"
}
}
See /v2/gen-ai/workspaces/{workspace_uuid} in the API reference for additional detail on responses, headers, parameters, and more.