Skip to main content

Approve Template

Approve a template, making it available for use in uploads.

Endpoint

POST /admin/templates/{template_id}/approve

Path Parameters

ParameterTypeRequiredDescription
template_idstringYesThe template ID

Request

curl -X POST https://api.docyard.io/v1/admin/templates/tmpl-ins-dec-002/approve \
  -H "X-API-Key: dk_live_admin_xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "notes": "Template looks good. Locks are properly defined with appropriate weights."
  }'

Response

{
  "template_id": "tmpl-ins-dec-002",
  "status": "published",
  "approved_at": "2026-03-15T11:00:00Z",
  "approved_by": "admin-001",
  "message": "Template approved and published successfully."
}