All Products
Search
Document Center

Qoder CN Series:Archive a template

Last Updated:Jul 15, 2026

Archives a Forward template so that it is excluded from the active template list.

Request headers

Header

Required

Description

Authorization

Yes

Bearer <PAT>

Idempotency-Key

No

An optional idempotency key for requests that have side effects.

Path parameters

Parameter

Type

Required

Description

template_id

string

Yes

Forward Template ID.

Example request

curl -s -X POST 'https://api.qoder.com.cn/api/v1/forward/templates/tmpl_support/archive' \
  -H "Authorization: Bearer $QODER_PAT"

Example response

HTTP 200 OK

{
  "type": "template",
  "id": "tmpl_support",
  "name": "Support assistant",
  "description": "Handles pre-sales and after-sales support",
  "status": "archived",
  "model": "ultimate",
  "system": "You are a helpful support assistant.",
  "tools": [],
  "mcp_servers": [],
  "skills": [],
  "multiagent": null,
  "environment_id": "env_support",
  "vault_ids": ["vault_crm"],
  "files": {},
  "environment_variables": {
    "BASE_MODE": "support"
  },
  "metadata": {},
  "created_at": "2026-06-18T10:00:00Z",
  "updated_at": "2026-06-18T10:30:00Z"
}

Response fields

Returns the archived template object with the status field set to archived.

Errors

HTTP

Type

Trigger

401

authentication_error

The PAT is invalid or has expired.

404

not_found_error

The specified template does not exist or is not accessible to the caller.

409

conflict_error

The current template state does not allow archiving.

Notes

  • Archived templates are excluded from the active list by default.

  • Archiving does not delete historical sessions or configuration data.