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

# Set the default series of a voucher type

> Only owners and admins. Returns the updated series list.



## OpenAPI

````yaml https://api.timbrix.mx/api/openapi.json put /organizations/{organizationId}/default-series
openapi: 3.0.0
info:
  title: Timbrix API
  description: >-
    API de facturación electrónica CFDI 4.0 para México, con servidor OAuth2
    para gestionar organizaciones, miembros y webhooks. Compatible con agentes
    de IA — ver la extensión `x-ai-agent-friendly` en la raíz de esta spec.


    REST API with OAuth2 server for managing organizations, members, and
    webhooks.
  version: '1.0'
  contact: {}
servers: []
security: []
tags:
  - name: organizations
    description: Organization management endpoints
  - name: oauth
    description: OAuth2 authentication and authorization
  - name: webhooks
    description: Webhook configuration and delivery
  - name: users
    description: User information endpoints
  - name: api-keys
    description: API Keys management and validation
  - name: request-logs
    description: API request log
paths:
  /organizations/{organizationId}/default-series:
    put:
      tags:
        - series
      summary: Set the default series of a voucher type
      description: Only owners and admins. Returns the updated series list.
      operationId: SeriesController_setDefault
      parameters:
        - name: organizationId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetDefaultSeriesDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SeriesResponseDto'
        '404':
          description: SERIES_NOT_FOUND
      security:
        - bearer: []
components:
  schemas:
    SetDefaultSeriesDto:
      type: object
      properties:
        type:
          type: string
          description: Tipo de comprobante
          enum:
            - I
            - E
            - T
            - P
          example: E
        series:
          type: string
          description: Serie existente que será la predeterminada
          example: FAC
      required:
        - type
        - series
    SeriesResponseDto:
      type: object
      properties:
        series:
          type: string
          example: A
        nextFolio:
          type: number
          example: 1
        nextFolioTest:
          type: number
          example: 1
        defaultFor:
          type: array
          example:
            - I
            - T
          items:
            type: string
            enum:
              - I
              - E
              - T
              - P
      required:
        - series
        - nextFolio
        - nextFolioTest
        - defaultFor
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.