dots.v2.agents.templates.post()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.agents.templates.post(body: Create_template_request, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Create_template_response>

Description

Creates a team-owned template from a customer OCI ref rebased onto a base template. team_id is stamped from the authenticated principal.

Parameters

name string required
baseTemplate string required

Base template key. One of: coding-base, coding-claude-code, coding-codex, coding-hermes, coding-opencode, langgraph.

sourceOciRef string required

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.agents.templates.post({
    name: "string",
    baseTemplate: "string",
    sourceOciRef: "string",
});

Response Example

Show Response Example
{
  "template": {
    "template_id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
    "name": "my-custom-template",
    "spec": {
      "base_template": "coding-opencode"
    },
    "status": "TEMPLATE_STATUS_READY",
    "created_at": "2026-08-01T12:00:00Z",
    "updated_at": "2026-08-01T12:05:00Z"
  }
}

More Information

See /v2/agents/templates 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.