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

# Edit a presentation

> Apply new content to an existing presentation and return the updated result.

[Read the presentation workflow guide](/api-guides/presentation-generation-flows).



## OpenAPI

````yaml /archive/v0.9.0-beta/openapi/self-hosted.json post /api/v1/ppt/presentation/edit
openapi: 3.1.0
info:
  title: Presenton Self-hosted API
  version: v0.9.0-beta
  description: Supported public API served by a self-hosted Presenton deployment.
servers:
  - url: http://localhost:5001
    description: Local self-hosted instance
security: []
tags:
  - name: Presentations
    description: Generate and manage presentations.
  - name: Files and media
    description: Upload source files and images.
  - name: Templates and design
    description: Select reusable presentation designs.
  - name: Async and webhooks
    description: Monitor background work and receive events.
paths:
  /api/v1/ppt/presentation/edit:
    post:
      tags:
        - Presentation
      summary: Edit a presentation
      description: >-
        Apply new content to an existing presentation and return the updated
        result.


        [Read the presentation workflow
        guide](/api-guides/presentation-generation-flows).
      operationId: edit_presentation_with_new_content_api_v1_ppt_presentation_edit_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditPresentationRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PresentationPathAndEditPath'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          $ref: '#/components/responses/ServerError'
      security:
        - BasicAuth: []
      externalDocs:
        description: Read the presentation workflow guide
        url: /api-guides/presentation-generation-flows
components:
  schemas:
    EditPresentationRequest:
      properties:
        presentation_id:
          type: string
          format: uuid
          title: Presentation Id
        slides:
          items:
            $ref: '#/components/schemas/SlideContentUpdate'
          type: array
          title: Slides
        export_as:
          type: string
          enum:
            - pptx
            - pdf
          title: Export As
          default: pptx
      type: object
      required:
        - presentation_id
        - slides
      title: EditPresentationRequest
    PresentationPathAndEditPath:
      properties:
        presentation_id:
          type: string
          format: uuid
          title: Presentation Id
        path:
          type: string
          title: Path
        edit_path:
          type: string
          title: Edit Path
      type: object
      required:
        - presentation_id
        - path
        - edit_path
      title: PresentationPathAndEditPath
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SlideContentUpdate:
      properties:
        index:
          type: integer
          title: Index
        content:
          additionalProperties: true
          type: object
          title: Content
      type: object
      required:
        - index
        - content
      title: SlideContentUpdate
    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
  responses:
    Unauthorized:
      description: Authentication is missing or invalid.
    ServerError:
      description: Presenton or one of its configured dependencies failed.
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic

````