Class UploadedFilesService

Hierarchy (view full)

Constructors

Properties

availableOperations: ServiceOperation[] = ...

Lists out the available operations for the resource, calling methods not in this list will result in an error

baseUrl: string = 'https://api.app.shortcut.com/api/v3/files'
headers: Record<string, string>
instances: Record<string, UploadedFile> = {}

Methods

  • Uploads a file to Shortcut, optionally associating it with a story. Note that it is unknown where non-story associated files are stored.

    Parameters

    • file: Buffer

      The file to upload

    • Optional story: number | Story

      The story to associate the file with, either an instance of Story or a story ID

    Returns Promise<UploadedFile>