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

# Upload template file directly

> Upload template file bytes directly to the API (used when signed URLs are unavailable, e.g. local storage).



## OpenAPI

````yaml /openapi/powerpoint-api.json put /api/v1/templates/{template_id}/upload
openapi: 3.1.0
info:
  title: SlideKit
  description: >-
    A comprehensive API for PowerPoint template management and presentation
    generation
  version: 1.0.0
servers: []
security: []
paths:
  /api/v1/templates/{template_id}/upload:
    put:
      tags:
        - templates
      summary: Upload template file directly
      description: >-
        Upload template file bytes directly to the API (used when signed URLs
        are unavailable, e.g. local storage).
      operationId: upload_template_direct_api_v1_templates__template_id__upload_put
      parameters:
        - name: template_id
          in: path
          required: true
          schema:
            type: string
            title: Template Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadConfirmResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    UploadConfirmResponse:
      properties:
        confirmed:
          type: boolean
          title: Confirmed
          description: Whether the upload was confirmed successfully
        template_id:
          type: string
          title: Template Id
        status:
          type: string
          title: Status
          description: Current template status
        file_size:
          anyOf:
            - type: integer
            - type: 'null'
          title: File Size
          description: File size in bytes
        file_hash:
          anyOf:
            - type: string
            - type: 'null'
          title: File Hash
          description: SHA256 hash of the file
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
          description: Error message if confirmation failed
      type: object
      required:
        - confirmed
        - template_id
        - status
      title: UploadConfirmResponse
      description: Response schema for confirming upload completion.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Production API key. Development/test deployments may also allow
        X-Org-Name.

````