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

# Create PowerPoint FlashDocs Template/Library

> Upload a PowerPoint (`*.pptx`) file to create a **template** or **library** within your organization.

        **Document Types**:
        - **Template**: Ideal for creating reusable slide formats.
        - **Library**: Suitable for comprehensive collections of slides.

        **Processing Time**: Depending on the size of the presentation, processing may take a few minutes. If upload speed is a concern, please contact us to discuss optimization options.



## OpenAPI

````yaml https://api.flashdocs.ai/openapi.json post /v1/documents/pptx
openapi: 3.1.0
info:
  title: FlashDocs API
  description: API for FlashDocs application
  version: 1.0.0
servers:
  - url: https://api.flashdocs.ai
    description: Production server
security: []
paths:
  /v1/documents/pptx:
    post:
      tags:
        - FlashDocs Document Configuration
      summary: Create PowerPoint FlashDocs Template/Library
      description: >-
        Upload a PowerPoint (`*.pptx`) file to create a **template** or
        **library** within your organization.

                **Document Types**:
                - **Template**: Ideal for creating reusable slide formats.
                - **Library**: Suitable for comprehensive collections of slides.

                **Processing Time**: Depending on the size of the presentation, processing may take a few minutes. If upload speed is a concern, please contact us to discuss optimization options.
      operationId: upload_from_link_ppt_v1_documents_pptx_post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_upload_from_link_ppt_v1_documents_pptx_post
        required: true
      responses:
        '200':
          description: Document uploaded successfully
          content:
            application/json:
              schema: {}
              example:
                success: true
                document_id: abc-defghi-1234-5
        '400':
          description: Invalid File or Input
          content:
            application/json:
              example:
                success: false
                message: 'Failed to upload document: Invalid file format.'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              example:
                success: false
                message: 'Failed to upload document: <error details>'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    Body_upload_from_link_ppt_v1_documents_pptx_post:
      properties:
        file:
          type: string
          format: binary
          title: File
          description: The PowerPoint (.ppt or .pptx) file to upload.
        document_type:
          allOf:
            - $ref: '#/components/schemas/DocumentType'
          description: >-
            Specify the type of document to create. **Possible values**:
            "template", "library".
          default: template
        name:
          type: string
          title: Name
          description: The name to assign to the uploaded presentation.
          default: Presentation Name
        description:
          type: string
          title: Description
          description: A brief description of the presentation.
          default: Add presentation description here...
        reset_text_boxes:
          type: boolean
          title: Reset Text Boxes
          description: |2-

                            Determines how text boxes are handled during upload.
                            - **true**: Converts all text boxes into placeholders.
                            - **false**: Only identifies and captures text enclosed in brackets (`[`, `]`) as placeholders.
                        
          default: false
      type: object
      required:
        - file
      title: Body_upload_from_link_ppt_v1_documents_pptx_post
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DocumentType:
      type: string
      enum:
        - template
        - library
      title: DocumentType
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: token

````