> ## 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.

# Definir le modele par defaut d'un numero

> Sets or clears the default summary template used for a phone number's call summaries. Pass `summary_template_id` to set it, or null/omit to clear it.

<Note>
  **Scope requis :** `SUMMARY_TEMPLATES_WRITE`
</Note>

## Comportement

Definit le modele de resume par defaut d'un numero de telephone. Les nouveaux appels sur ce numero sont resumes avec ce modele. Le parametre de chemin `{number}` est le numero Allo au format E.164 (par ex. `+14155551234`).

Passez `summary_template_id` (un ID `tst-*`) pour definir le modele par defaut, ou omettez-le / passez `null` pour le retirer et revenir au resume standard d'Allo.

## Erreurs

* `404 PHONE_NUMBER_NOT_FOUND` — le numero ne fait pas partie des numeros de votre compte. Listez-les avec `GET /v2/api/numbers`.
* `404 SUMMARY_TEMPLATE_NOT_FOUND` — aucun modele actif avec cet ID n'existe pour l'equipe du numero.


## OpenAPI

````yaml PUT /v2/api/numbers/{number}/default_summary_template
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/numbers/{number}/default_summary_template:
    put:
      tags:
        - Summary Templates
      summary: Set number default summary template
      description: >-
        Sets or clears the default summary template used for a phone number's
        call summaries. Pass `summary_template_id` to set it, or null/omit to
        clear it.
      operationId: setNumberDefaultSummaryTemplate
      parameters:
        - name: number
          in: path
          required: true
          description: Allo phone number in E.164 format
          schema:
            type: string
            example: '+14155551234'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                summary_template_id:
                  type: string
                  nullable: true
                  description: >-
                    Summary template ID (`tst-*`) to set as the default, or null
                    to clear.
                  example: tst-abc123
            example:
              summary_template_id: tst-abc123
      responses:
        '200':
          description: Default summary template updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      number:
                        type: string
                        example: '+14155551234'
                      default_summary_template_id:
                        type: string
                        nullable: true
                        example: tst-abc123
              example:
                data:
                  number: '+14155551234'
                  default_summary_template_id: tst-abc123
        '400':
          $ref: '#/components/responses/ApiValidationError'
        '401':
          $ref: '#/components/responses/ApiUnauthorized'
        '404':
          $ref: '#/components/responses/ApiNotFound'
        '429':
          $ref: '#/components/responses/ApiRateLimited'
      security:
        - ApiKeyAuth: []
components:
  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'
  schemas:
    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
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````