Constructors

Methods

  • Search through files in the file manager. Does not display hidden or archived files. Search files

    Parameters

    • Optionalproperties: string[]

      Desired file properties in the return object.

    • Optionalafter: string

      The maximum offset of items for a given search is 10000. Narrow your search down if you are reaching this limit.

    • Optionalbefore: string
    • Optionallimit: number

      Number of items to return. Maximum limit is 100.

    • Optionalsort: string[]

      Sort files by a given field.

    • Optionalid: string

      Search files by given ID.

    • OptionalcreatedAt: Date

      Search files by time of creation.

    • OptionalcreatedAtLte: Date
    • OptionalcreatedAtGte: Date
    • OptionalupdatedAt: Date

      Search files by time of latest updated.

    • OptionalupdatedAtLte: Date
    • OptionalupdatedAtGte: Date
    • Optionalname: string

      Search for files containing the given name.

    • Optionalpath: string

      Search files by path.

    • OptionalparentFolderId: number

      Search files within given folderId.

    • Optionalsize: number

      Query by file size.

    • Optionalheight: number

      Search files by height of image or video.

    • Optionalwidth: number

      Search files by width of image or video.

    • Optionalencoding: string

      Search files with specified encoding.

    • Optionaltype: string

      Filter by provided file type.

    • Optionalextension: string

      Search files by given extension.

    • Optionalurl: string

      Search for given URL

    • OptionalisUsableInContent: boolean

      If true shows files that have been marked to be used in new content. It false shows files that should not be used in new content.

    • OptionalallowsAnonymousAccess: boolean

      If 'true' will show private files; if 'false' will show public files

    • Optional_options: Configuration

    Returns Promise<CollectionResponseFile>

  • Search through files in the file manager. Does not display hidden or archived files. Search files

    Parameters

    • Optionalproperties: string[]

      Desired file properties in the return object.

    • Optionalafter: string

      The maximum offset of items for a given search is 10000. Narrow your search down if you are reaching this limit.

    • Optionalbefore: string
    • Optionallimit: number

      Number of items to return. Maximum limit is 100.

    • Optionalsort: string[]

      Sort files by a given field.

    • Optionalid: string

      Search files by given ID.

    • OptionalcreatedAt: Date

      Search files by time of creation.

    • OptionalcreatedAtLte: Date
    • OptionalcreatedAtGte: Date
    • OptionalupdatedAt: Date

      Search files by time of latest updated.

    • OptionalupdatedAtLte: Date
    • OptionalupdatedAtGte: Date
    • Optionalname: string

      Search for files containing the given name.

    • Optionalpath: string

      Search files by path.

    • OptionalparentFolderId: number

      Search files within given folderId.

    • Optionalsize: number

      Query by file size.

    • Optionalheight: number

      Search files by height of image or video.

    • Optionalwidth: number

      Search files by width of image or video.

    • Optionalencoding: string

      Search files with specified encoding.

    • Optionaltype: string

      Filter by provided file type.

    • Optionalextension: string

      Search files by given extension.

    • Optionalurl: string

      Search for given URL

    • OptionalisUsableInContent: boolean

      If true shows files that have been marked to be used in new content. It false shows files that should not be used in new content.

    • OptionalallowsAnonymousAccess: boolean

      If &#39;true&#39; will show private files; if &#39;false&#39; will show public files

    • Optional_options: Configuration

    Returns Promise<HttpInfo<CollectionResponseFile>>

  • Get file by ID. Get file.

    Parameters

    • fileId: string

      ID of the desired file.

    • Optionalproperties: string[]
    • Optional_options: Configuration

    Returns Promise<any>

  • Generates signed URL that allows temporary access to a private file. Get signed URL to access private file.

    Parameters

    • fileId: string

      ID of file.

    • Optionalsize:
          | "medium"
          | "thumb"
          | "icon"
          | "preview"

      For image files. This will resize the image to the desired size before sharing. Does not affect the original file, just the file served by this signed URL.

    • OptionalexpirationSeconds: number

      How long in seconds the link will provide access to the file.

    • Optionalupscale: boolean

      If size is provided, this will upscale the image to fit the size dimensions.

    • Optional_options: Configuration

    Returns Promise<SignedUrl>

  • Generates signed URL that allows temporary access to a private file. Get signed URL to access private file.

    Parameters

    • fileId: string

      ID of file.

    • Optionalsize:
          | "medium"
          | "thumb"
          | "icon"
          | "preview"

      For image files. This will resize the image to the desired size before sharing. Does not affect the original file, just the file served by this signed URL.

    • OptionalexpirationSeconds: number

      How long in seconds the link will provide access to the file.

    • Optionalupscale: boolean

      If size is provided, this will upscale the image to fit the size dimensions.

    • Optional_options: Configuration

    Returns Promise<HttpInfo<SignedUrl>>

  • Replace existing file data with new file data. Can be used to change image content without having to upload a new file and update all references. Replace file.

    Parameters

    • fileId: string

      ID of the desired file.

    • Optionalfile: HttpFile

      File data that will replace existing file in the file manager.

    • OptionalcharsetHunch: string

      Character set of given file data.

    • Optionaloptions: string

      JSON String representing FileReplaceOptions

    • Optional_options: Configuration

    Returns Promise<any>

  • Replace existing file data with new file data. Can be used to change image content without having to upload a new file and update all references. Replace file.

    Parameters

    • fileId: string

      ID of the desired file.

    • Optionalfile: HttpFile

      File data that will replace existing file in the file manager.

    • OptionalcharsetHunch: string

      Character set of given file data.

    • Optionaloptions: string

      JSON String representing FileReplaceOptions

    • Optional_options: Configuration

    Returns Promise<HttpInfo<any>>

  • Upload a single file with content specified in request body. Upload file

    Parameters

    • Optionalfile: HttpFile

      File to be uploaded.

    • OptionalfolderId: string

      Either \&#39;folderId\&#39; or \&#39;folderPath\&#39; is required. folderId is the ID of the folder the file will be uploaded to.

    • OptionalfolderPath: string

      Either \&#39;folderPath\&#39; or \&#39;folderId\&#39; is required. This field represents the destination folder path for the uploaded file. If a path doesn\&#39;t exist, the system will try to create one.

    • OptionalfileName: string

      Desired name for the uploaded file.

    • OptionalcharsetHunch: string

      Character set of the uploaded file.

    • Optionaloptions: string

      JSON string representing FileUploadOptions.

    • Optional_options: Configuration

    Returns Promise<any>

  • Upload a single file with content specified in request body. Upload file

    Parameters

    • Optionalfile: HttpFile

      File to be uploaded.

    • OptionalfolderId: string

      Either \&#39;folderId\&#39; or \&#39;folderPath\&#39; is required. folderId is the ID of the folder the file will be uploaded to.

    • OptionalfolderPath: string

      Either \&#39;folderPath\&#39; or \&#39;folderId\&#39; is required. This field represents the destination folder path for the uploaded file. If a path doesn\&#39;t exist, the system will try to create one.

    • OptionalfileName: string

      Desired name for the uploaded file.

    • OptionalcharsetHunch: string

      Character set of the uploaded file.

    • Optionaloptions: string

      JSON string representing FileUploadOptions.

    • Optional_options: Configuration

    Returns Promise<HttpInfo<any>>