Constructors

Methods

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

    Parameters

    • Optionalproperties: string[]

      A list of file properties to return.

    • Optionalafter: string

      Offset search results by this value. The default offset is 0 and the maximum offset of items for a given search is 10,000. Narrow your search down if you are reaching this limit.

    • Optionalbefore: string
    • Optionallimit: number

      Number of items to return. Default limit is 10, maximum limit is 100.

    • Optionalsort: string[]

      Sort files by a given field.

    • Optionalids: number[]

      Search by a list of file IDs.

    • OptionalidLte: number
    • OptionalidGte: number
    • OptionalcreatedAt: Date

      Search files by time of creation.

    • OptionalcreatedAtLte: Date

      Search files by less than or equal to time of creation. Can be used with `createdAtGte` to create a range.

    • OptionalcreatedAtGte: Date

      Search files by greater than or equal to time of creation. Can be used with `createdAtLte` to create a range.

    • OptionalupdatedAt: Date

      Search files by time of latest updated.

    • OptionalupdatedAtLte: Date

      Search files by less than or equal to time of latest update. Can be used with `updatedAtGte` to create a range.

    • OptionalupdatedAtGte: Date

      Search files by greater than or equal to time of latest update. Can be used with `updatedAtLte` to create a range.

    • Optionalname: string

      Search for files containing the given name.

    • Optionalpath: string

      Search files by path.

    • OptionalparentFolderIds: number[]

      Search files within given `folderId`.

    • Optionalsize: number

      Search files by exact file size in bytes.

    • OptionalsizeLte: number

      Search files by less than or equal to file size. Can be used with `sizeGte` to create a range.

    • OptionalsizeGte: number

      Search files by greater than or equal to file size. Can be used with `sizeLte` to create a range.

    • Optionalheight: number

      Search files by height of image or video.

    • OptionalheightLte: number

      Search files by less than or equal to height of image or video. Can be used with `heightGte` to create a range.

    • OptionalheightGte: number

      Search files by greater than or equal to height of image or video. Can be used with `heightLte` to create a range.

    • Optionalwidth: number

      Search files by width of image or video.

    • OptionalwidthLte: number

      Search files by less than or equal to width of image or video. Can be used with `widthGte` to create a range.

    • OptionalwidthGte: number

      Search files by greater than or equal to width of image or video. Can be used with `widthLte` to create a range.

    • Optionalencoding: string

      Search files by specified encoding.

    • Optionaltype: string

      Filter by provided file type.

    • Optionalextension: string

      Search files by given extension.

    • Optionalurl: string

      Search by file URL.

    • OptionalisUsableInContent: boolean

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

    • OptionalallowsAnonymousAccess: boolean

      Search files by access. If `true`, will show only public files. If `false`, will show only private files.

    • OptionalfileMd5: string

      Search files by a specific md5 hash.

    • OptionalexpiresAt: Date

      Search files by exact expires time. Time must be epoch time in milliseconds.

    • OptionalexpiresAtLte: Date

      Search files by less than or equal to expires time. Can be used with `expiresAtGte` to create a range.

    • OptionalexpiresAtGte: Date

      Search files by greater than or equal to expires time. Can be used with `expiresAtLte` to create a range.

    • Optional_options: PromiseConfigurationOptions

    Returns Promise<CollectionResponseFile>

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

    Parameters

    • Optionalproperties: string[]

      A list of file properties to return.

    • Optionalafter: string

      Offset search results by this value. The default offset is 0 and the maximum offset of items for a given search is 10,000. Narrow your search down if you are reaching this limit.

    • Optionalbefore: string
    • Optionallimit: number

      Number of items to return. Default limit is 10, maximum limit is 100.

    • Optionalsort: string[]

      Sort files by a given field.

    • Optionalids: number[]

      Search by a list of file IDs.

    • OptionalidLte: number
    • OptionalidGte: number
    • OptionalcreatedAt: Date

      Search files by time of creation.

    • OptionalcreatedAtLte: Date

      Search files by less than or equal to time of creation. Can be used with `createdAtGte` to create a range.

    • OptionalcreatedAtGte: Date

      Search files by greater than or equal to time of creation. Can be used with `createdAtLte` to create a range.

    • OptionalupdatedAt: Date

      Search files by time of latest updated.

    • OptionalupdatedAtLte: Date

      Search files by less than or equal to time of latest update. Can be used with `updatedAtGte` to create a range.

    • OptionalupdatedAtGte: Date

      Search files by greater than or equal to time of latest update. Can be used with `updatedAtLte` to create a range.

    • Optionalname: string

      Search for files containing the given name.

    • Optionalpath: string

      Search files by path.

    • OptionalparentFolderIds: number[]

      Search files within given `folderId`.

    • Optionalsize: number

      Search files by exact file size in bytes.

    • OptionalsizeLte: number

      Search files by less than or equal to file size. Can be used with `sizeGte` to create a range.

    • OptionalsizeGte: number

      Search files by greater than or equal to file size. Can be used with `sizeLte` to create a range.

    • Optionalheight: number

      Search files by height of image or video.

    • OptionalheightLte: number

      Search files by less than or equal to height of image or video. Can be used with `heightGte` to create a range.

    • OptionalheightGte: number

      Search files by greater than or equal to height of image or video. Can be used with `heightLte` to create a range.

    • Optionalwidth: number

      Search files by width of image or video.

    • OptionalwidthLte: number

      Search files by less than or equal to width of image or video. Can be used with `widthGte` to create a range.

    • OptionalwidthGte: number

      Search files by greater than or equal to width of image or video. Can be used with `widthLte` to create a range.

    • Optionalencoding: string

      Search files by specified encoding.

    • Optionaltype: string

      Filter by provided file type.

    • Optionalextension: string

      Search files by given extension.

    • Optionalurl: string

      Search by file URL.

    • OptionalisUsableInContent: boolean

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

    • OptionalallowsAnonymousAccess: boolean

      Search files by access. If `true`, will show only public files. If `false`, will show only private files.

    • OptionalfileMd5: string

      Search files by a specific md5 hash.

    • OptionalexpiresAt: Date

      Search files by exact expires time. Time must be epoch time in milliseconds.

    • OptionalexpiresAtLte: Date

      Search files by less than or equal to expires time. Can be used with `expiresAtGte` to create a range.

    • OptionalexpiresAtGte: Date

      Search files by greater than or equal to expires time. Can be used with `expiresAtLte` to create a range.

    • Optional_options: PromiseConfigurationOptions

    Returns Promise<HttpInfo<CollectionResponseFile>>

  • 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: PromiseConfigurationOptions

    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: PromiseConfigurationOptions

    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. Includes options to set the access and expiresAt properties, which will automatically update when the file is replaced.

    • Optional_options: PromiseConfigurationOptions

    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. Includes options to set the access and expiresAt properties, which will automatically update when the file is replaced.

    • Optional_options: PromiseConfigurationOptions

    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: PromiseConfigurationOptions

    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: PromiseConfigurationOptions

    Returns Promise<HttpInfo<any>>