> ## Documentation Index
> Fetch the complete documentation index at: https://developer.eka.care/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Template

> Update a custom template's title or description. Only the fields you send are changed. Default (Eka-provided) templates cannot be modified.


Update a custom template's `title` or `desc` — only the fields you send are changed. Eka default templates cannot be modified.


## OpenAPI

````yaml PATCH /voice/api/v1/template/{template_id}
openapi: 3.0.1
info:
  title: EkaScribe Protocol API (MedScribeAlliance v0.1)
  version: '0.1'
  description: >
    Session-based medical voice capture API implementing the MedScribeAlliance
    Protocol v0.1. Discover service capabilities, create a session, stream audio
    chunks, then end the session to trigger asynchronous transcription and
    structured-template extraction.
servers:
  - url: https://api.eka.care
    description: Production server
  - url: https://api.dev.eka.care
    description: Development server
security: []
paths:
  /voice/api/v1/template/{template_id}:
    patch:
      tags:
        - templates
      summary: Update Template
      description: >
        Update a custom template's title or description. Only the fields you
        send are changed. Default (Eka-provided) templates cannot be modified.
      parameters:
        - name: template_id
          in: path
          required: true
          description: Template ID returned by Create Template
          schema:
            type: string
            example: tpl_7d1a2b3c4d5e
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TemplateUpdateRequest'
            example:
              title: Cardiology OPD Note v2
              desc: Updated instructions...
      responses:
        '200':
          description: Template updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
              example:
                msg: updated successfully
        '404':
          description: Template not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - auth: []
components:
  schemas:
    TemplateUpdateRequest:
      type: object
      properties:
        title:
          type: string
        desc:
          type: string
          description: Updated template instructions (plain text or markdown).
    MessageResponse:
      type: object
      properties:
        msg:
          type: string
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable error code.
              example: invalid_audio_format
            message:
              type: string
              description: Human-readable error message.
              example: Audio format 'audio/mp3' is not supported
            details:
              type: object
              additionalProperties: true
              description: Additional error context.
  securitySchemes:
    auth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your auth token.

````