Skip to main content
POST
Duplicate a saved template
Requires Editor, Admin, or Owner. Send a numeric template_id from List saved templates and a workflow_name for the copy. Trigger identifiers are regenerated. The response contains the created agent and its definition. A missing template returns 404; a conflicting trigger path returns 409. Each successful request creates a new agent, so check the first response before retrying.

Authorizations

Authorization
string
header
required

Bandwidth Labs OAuth access token. Uses the user's selected workspace; the workspace header is not required. Do not also send an API key. Bearer-only operations may additionally require the Labs super_user role.

Headers

X-VOAI-ORGANIZATION-ID
string | null

Required with X-BW-LABS-AGENTS-API-KEY: the positive local workspace ID to access. The key owner must be a current member. Missing or invalid IDs return 400; non-member workspaces return 403. Not required for bearer authentication, which uses the user's selected workspace.

Body

application/json
template_id
integer
required
workflow_name
string
required

Response

Successful Response

created_at
string<date-time>
required
current_definition_id
integer | null
required

Current definition record ID; distinct from version_number.

id
integer
required
name
string
required
status
string
required
workflow_definition
Workflow Definition · object
required

Node and edge graph for this version.

call_disposition_codes
CallDispositionCodes · object | null
template_context_variables
Template Context Variables · object | null
total_runs
integer | null
version_number
integer | null

Human-readable sequence number. Use the version record ID for rollback.

version_status
string | null
workflow_configurations
Workflow Configurations · object | null
workflow_uuid
string | null