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

# Update a project

> Update the title, description or status of a project, patch one slide with patch_slide, or replace the whole document with content (cannot be undone). SVG containing scripts, event handlers or javascript: links is rejected with 400 unsafe_content. Requires projects:write.



## OpenAPI

````yaml /openapi.json patch /projects/{project_id}
openapi: 3.1.0
info:
  title: Pekto Developer API
  version: 1.0.0
  description: >-
    Generate editable presentations and LinkedIn/Instagram carousels, read and
    edit projects, browse templates and brand kits, and schedule social posts.
servers:
  - url: https://fwpvfpysaskvlxgwcaxk.supabase.co/functions/v1/api-v1
    description: Production Pekto Developer API
security:
  - bearerAuth: []
paths:
  /projects/{project_id}:
    patch:
      summary: Update a project
      description: >-
        Update the title, description or status of a project, patch one slide
        with patch_slide, or replace the whole document with content (cannot be
        undone). SVG containing scripts, event handlers or javascript: links is
        rejected with 400 unsafe_content. Requires projects:write.
      operationId: updateProjectMetadata
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Project UUID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                  maxLength: 180
                description:
                  type: string
                  maxLength: 2000
                status:
                  type: string
                  enum:
                    - draft
                    - published
                    - archived
                content:
                  type: object
                  description: Full document content. Replaces the whole document.
                patch_slide:
                  type: object
                  properties:
                    index:
                      type: integer
                    svg_content:
                      type: string
                    title:
                      type: string
                    notes:
                      type: string
      responses:
        '200':
          description: Updated project record
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Pekto API key (pekto_live_...), an OAuth 2.1 access token from Pekto
        sign-in (used by MCP clients), or a Pekto user session token.

````

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