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

# Update summary template

> Replaces a summary template's name, call context, icon, and sections.

<Note>
  **Required scope:** `SUMMARY_TEMPLATES_WRITE`
</Note>

## Behavior

Replaces the template's `name`, `call_context`, `icon`, and `sections` with the values you send, so pass the **full desired state** — omitted `call_context`, `icon`, and `sections` are cleared. Fetch the current template first with [Get summary template](/en/v2/api-reference/summary-templates/get-summary-template) if you only want to change one field.

Returns `404` with code `SUMMARY_TEMPLATE_NOT_FOUND` if no active template with that ID exists for your team.


## OpenAPI

````yaml PUT /v2/api/summary_templates/{id}
openapi: 3.0.3
info:
  title: Allo API
  description: >-
    Allo API provides programmatic access to your Allo account, allowing you to
    manage webhooks, retrieve calls and contacts, and send SMS messages.


    All requests to `/v1/api/**` endpoints automatically go through quota
    checking and scope validation.
  version: 1.0.0
  contact:
    name: Allo Support
servers:
  - url: https://api.withallo.com
    description: Production server
security: []
tags:
  - name: Summary Templates
    description: >-
      Manage call summary templates that control how AI-generated call summaries
      are structured for your team.
  - name: Webhooks
    description: >-
      Manage webhook endpoints to receive real-time notifications about events
      in your Allo account. Each endpoint subscribes to one or more event topics
      and is verified with a signing secret.
  - name: Calls
    description: >-
      Retrieve and search call records with filtering and pagination. Filter
      calls by your Allo phone number.
  - name: Contacts
    description: >-
      Search and retrieve contact information with sorting and pagination.
      Includes engagement level tracking.
  - name: SMS
    description: Send SMS messages to phone numbers using your Allo numbers.
  - name: Phone Numbers
    description: Retrieve information about your Allo phone numbers.
  - name: Analytics
    description: Pre-computed call metrics, team performance, and outbound dial funnel
  - name: CRM
    description: Manage people, companies, and deals in your CRM.
paths:
  /v2/api/summary_templates/{id}:
    put:
      tags:
        - Summary Templates
      summary: Update summary template
      description: Replaces a summary template's name, call context, icon, and sections.
      operationId: updateSummaryTemplate
      parameters:
        - name: id
          in: path
          required: true
          description: Summary template ID (`tst-*`)
          schema:
            type: string
            example: tst-abc123
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Template name.
                  example: Sales call
                call_context:
                  type: string
                  nullable: true
                  description: >-
                    Background context that helps the AI summarize calls (max
                    4000 characters).
                  example: B2B SaaS sales calls
                icon:
                  type: string
                  nullable: true
                  description: Optional icon (e.g. an emoji).
                  example: 📞
                sections:
                  type: array
                  maxItems: 10
                  items:
                    $ref: '#/components/schemas/SummaryTemplateSection'
                  description: Ordered sections that make up the summary (max 10).
              required:
                - name
            example:
              name: Sales call
              call_context: B2B SaaS sales calls
              icon: 📞
              sections:
                - title: Pain points
                  instructions: List the prospect's pain points
                  order: 0
                - title: Next steps
                  instructions: What was agreed
                  order: 1
      responses:
        '200':
          description: Summary template updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/SummaryTemplate'
              example:
                data:
                  id: tst-abc123
                  name: Sales call
                  call_context: B2B SaaS sales calls
                  icon: 📞
                  sections:
                    - title: Pain points
                      instructions: List the prospect's pain points
                      order: 0
                    - title: Next steps
                      instructions: What was agreed
                      order: 1
                  created_at: '2026-06-01T10:00:00'
                  updated_at: '2026-06-01T10:00:00'
        '400':
          $ref: '#/components/responses/ApiValidationError'
        '401':
          $ref: '#/components/responses/ApiUnauthorized'
        '404':
          $ref: '#/components/responses/ApiNotFound'
        '429':
          $ref: '#/components/responses/ApiRateLimited'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    SummaryTemplateSection:
      type: object
      properties:
        title:
          type: string
          example: Pain points
        instructions:
          type: string
          example: List the prospect's pain points
        order:
          type: integer
          description: 0-based position of the section in the summary.
          example: 0
    SummaryTemplate:
      type: object
      properties:
        id:
          type: string
          example: tst-abc123
        name:
          type: string
          example: Sales call
        call_context:
          type: string
          nullable: true
          example: B2B SaaS sales calls
        icon:
          type: string
          nullable: true
          example: 📞
        sections:
          type: array
          items:
            $ref: '#/components/schemas/SummaryTemplateSection'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
            request_id:
              type: string
            retry_after_seconds:
              type: integer
              nullable: true
  responses:
    ApiValidationError:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiUnauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiNotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiRateLimited:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````