pydo.harness.create_template()

Generated on 13 Nov 2026 from pydo version v0.46.0

Usage

client.harness.create_template(
    body={
        "name": "your_name",
        "base_template": "your_base_template",
        "source_oci_ref": "your_source_oci_ref",
    },
)
Returns JSON Raises HttpResponseError

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
base_template string required

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

source_oci_ref string required

Request Sample

Show Request Sample
import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

req = {
  "name": "string",
  "base_template": "string",
  "source_oci_ref": "string"
}

resp = client.harness.create_template(body=req)

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.