Penpot Create File API

The Create File API from Penpot — 1 operation(s) for create file.

OpenAPI Specification

penpot-create-file-api-openapi.yml Raw ↑
openapi: 3.0.0
info:
  version: '2.16'
  title: Penpot RPC Add Team To Organization Create File API
  description: Penpot RPC-style REST API for projects, files, pages, components, and design assets.
  x-api-id: penpot-rpc
  contact:
    url: https://community.penpot.app/
    name: Penpot Support
  x-humanURL: https://penpot.app/integrations-api
servers:
- url: https://design.penpot.app/api/main/methods
  description: MAIN API
tags:
- name: Create File
paths:
  create-file:
    post:
      description: null
      deprecated: false
      requestBody:
        required: true
        content:
          application/json:
            schema:
              title: create-file
              type: object
              properties:
                name:
                  type: string
                  maxLength: 250
                projectId:
                  $ref: '#/components/schemas/Uuid'
                id:
                  $ref: '#/components/schemas/Uuid'
                isShared:
                  $ref: '#/components/schemas/Boolean'
                features:
                  $ref: '#/components/schemas/Features'
              required:
              - name
              - projectId
            example: '{"name":"2UmHXCau2GkDG73dYL5EtE0AdA32x7xK2tO68WE7YpMT5522wDkGgr17PLbrxdExiuiRMy5llkt9VzjShsq8A825morn5T6s6a4lewWrIYuqaKU3","projectId":"5ab5eb30-5b3a-81d5-8008-2a395e1ab382","id":"5ab5eb30-5b3a-81d5-8008-2a395e1ab383","isShared":true}'
      tags:
      - Create File
components:
  schemas:
    Features:
      title: set
      description: Set of Strings
      type: array
      items:
        type: string
      uniqueItems: true
    Boolean:
      title: boolean
      description: boolean
      type: boolean
    Uuid:
      title: uuid
      description: UUID formatted string
      type: string
      format: uuid