dots.v2.genAi.workspaces.post()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.genAi.workspaces.post(body: ApiCreateWorkspaceInputPublic, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiCreateWorkspaceOutput>

Description

To create a new workspace, send a POST request to /v2/gen-ai/workspaces. The response body contains a JSON object with the newly created workspace object.

Parameters

agentUuids array of strings optional

Example: ["example string"]

Ids of the agents(s) to attach to the workspace

description string optional

Example: example string

Description of the workspace

name string optional

Example: example name

Name of the workspace

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.post({
    agentUuids: [
        "example string",
    ],
    description: "example string",
    name: "example name",
});

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"
  }
}

More Information

See /v2/gen-ai/workspaces in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.