Skip to main content
PUT
/
template
/
{id}
Update an existing Template
curl --request PUT \
  --url https://api.trugen.ai/v1/template/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "template_name": "Updated Name",
  "template_system_prompt": "Updated system prompt",
  "config": {
    "conversationalContext": "Updated conversational context",
    "maxCallDuration": 2
  },
  "knowledge_base": null,
  "record": true
}
'
{
  "id": "d22e4b02-3a47-46f2-b0cd-5420f277eaf9",
  "message": "Template details updated successfully"
}

Authorizations

x-api-key
string
header
required

Path Parameters

id
string<uuid>
required

Unique identifier for the template

Body

application/json
template_name
string

Name of the template

Example:

"Default Calling Template"

template_system_prompt
string

System prompt text used by the template

Example:

"You are a helpful AI assistant."

config
object

Settings and configuration for the template

record
boolean

Whether the call should be recorded

Example:

true

Response

Template details updated successfully

id
string<uuid>

Unique identifier of the updated template

Example:

"d22e4b02-3a47-46f2-b0cd-5420f277eaf9"

message
string
Example:

"Template details updated successfully"