File
object is used to represent a file in the workspace. The Object typically exists under a folder or drive, if it exists.id
UUIDremote_id
Stringcreated_at
DateTime (ISO 8601)modified_at
DateTime (ISO 8601)name
Stringfile_url
Stringfile_thumbnail_url
Stringsize
Integermime_type
Stringdescription
Stringfolder
UUIDpermissions
Permission[]id
UUIDremote_id
Stringcreated_at
DateTime (ISO 8601)modified_at
DateTime (ISO 8601)user
UUIDgroup
UUIDtype
EnumUSER
, GROUP
, COMPANY
, ANYONE
. In cases where there is no clear mapping, the original value passed through will be returned.roles
ArrayREAD
, WRITE
, OWNER
. In cases where there is no clear mapping, the original value passed through will be returned.drive
UUIDremote_created_at
DateTime (ISO 8601)remote_updated_at
DateTime (ISO 8601)remote_was_deleted
Booleanfield_mappings
Objectremote_data
Arrayhttps://api.merge.dev/api/filestorage/v1/files
Returns a list of File
objects.
created_after
DateTime (ISO 8601)created_before
DateTime (ISO 8601)cursor
Stringdrive_id
Stringexpand
Stringfolder_id
Stringinclude_deleted_data
Booleaninclude_remote_data
Booleaninclude_shell_data
Booleanmime_type
Stringmodified_after
DateTime (ISO 8601)modified_before
DateTime (ISO 8601)name
Stringpage_size
Integerremote_id
StringSupported Response Fields
description
Stringfile_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_created_at
DateTime (ISO 8601)remote_data
Arrayremote_id
Stringremote_updated_at
DateTime (ISO 8601)size
IntegerSupported Response Fields
file_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_data
Arrayremote_id
Stringremote_updated_at
DateTime (ISO 8601)size
IntegerSupported Response Fields
description
Stringdrive
UUIDfile_thumbnail_url
Stringfile_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_created_at
DateTime (ISO 8601)remote_data
Arrayremote_id
Stringremote_updated_at
DateTime (ISO 8601)size
IntegerSupported Response Fields
drive
UUIDfile_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_created_at
DateTime (ISO 8601)remote_data
Arrayremote_id
Stringremote_updated_at
DateTime (ISO 8601)size
IntegerSupported Response Fields
drive
UUIDfile_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_created_at
DateTime (ISO 8601)remote_data
Arrayremote_id
Stringremote_updated_at
DateTime (ISO 8601)size
Integerhttps://api.merge.dev/api/filestorage/v1/files
Creates a File
object with the given values.
is_debug_mode
Booleanrun_async
Booleanmodel
Objectname
Stringfile_url
Stringfile_thumbnail_url
Stringsize
Integermime_type
Stringdescription
Stringfolder
UUIDid
field in the Folder object.permissions
Arraydrive
UUIDid
field in the Drive object.integration_params
Objectlinked_account_params
ObjectSupported POST Model Parameters
description
Stringfile_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_created_at
DateTime (ISO 8601)remote_id
Stringremote_updated_at
DateTime (ISO 8601)size
IntegerSupported POST Model Parameters
file_url
Stringfolder
UUIDmime_type
Stringname
Stringremote_id
Stringremote_updated_at
DateTime (ISO 8601)size
IntegerSupported POST Model Parameters
drive
UUIDfile_thumbnail_url
Stringfile_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_created_at
DateTime (ISO 8601)remote_id
Stringremote_updated_at
DateTime (ISO 8601)size
IntegerSupported POST Model Parameters
drive
UUIDfile_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_created_at
DateTime (ISO 8601)remote_id
Stringremote_updated_at
DateTime (ISO 8601)size
IntegerSupported POST Model Parameters
drive
UUIDfile_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_created_at
DateTime (ISO 8601)remote_id
Stringremote_updated_at
DateTime (ISO 8601)size
Integerhttps://api.merge.dev/api/filestorage/v1/files/{id}
Returns a File
object with the given id
.
expand
Stringid
UUIDinclude_remote_data
BooleanSupported Response Fields
description
Stringfile_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_created_at
DateTime (ISO 8601)remote_data
Arrayremote_id
Stringremote_updated_at
DateTime (ISO 8601)size
IntegerSupported Response Fields
file_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_data
Arrayremote_id
Stringremote_updated_at
DateTime (ISO 8601)size
IntegerSupported Response Fields
description
Stringdrive
UUIDfile_thumbnail_url
Stringfile_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_created_at
DateTime (ISO 8601)remote_data
Arrayremote_id
Stringremote_updated_at
DateTime (ISO 8601)size
IntegerSupported Response Fields
drive
UUIDfile_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_created_at
DateTime (ISO 8601)remote_data
Arrayremote_id
Stringremote_updated_at
DateTime (ISO 8601)size
IntegerSupported Response Fields
drive
UUIDfile_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_created_at
DateTime (ISO 8601)remote_data
Arrayremote_id
Stringremote_updated_at
DateTime (ISO 8601)size
Integerhttps://api.merge.dev/api/filestorage/v1/files/{id}/download
Returns the File
content with the given id
as a stream of bytes.
id
UUIDmime_type
StringSupported Response Fields
description
Stringfile_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_created_at
DateTime (ISO 8601)remote_data
Arrayremote_id
Stringremote_updated_at
DateTime (ISO 8601)size
IntegerSupported Response Fields
file_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_data
Arrayremote_id
Stringremote_updated_at
DateTime (ISO 8601)size
IntegerSupported Response Fields
description
Stringdrive
UUIDfile_thumbnail_url
Stringfile_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_created_at
DateTime (ISO 8601)remote_data
Arrayremote_id
Stringremote_updated_at
DateTime (ISO 8601)size
IntegerSupported Response Fields
drive
UUIDfile_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_created_at
DateTime (ISO 8601)remote_data
Arrayremote_id
Stringremote_updated_at
DateTime (ISO 8601)size
IntegerSupported Response Fields
drive
UUIDfile_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_created_at
DateTime (ISO 8601)remote_data
Arrayremote_id
Stringremote_updated_at
DateTime (ISO 8601)size
Integerhttps://api.merge.dev/api/filestorage/v1/files/meta/post
Returns metadata for FileStorageFile
POSTs.
Supported POST Model Parameters
description
Stringfile_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_created_at
DateTime (ISO 8601)remote_id
Stringremote_updated_at
DateTime (ISO 8601)size
IntegerSupported POST Model Parameters
file_url
Stringfolder
UUIDmime_type
Stringname
Stringremote_id
Stringremote_updated_at
DateTime (ISO 8601)size
IntegerSupported POST Model Parameters
drive
UUIDfile_thumbnail_url
Stringfile_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_created_at
DateTime (ISO 8601)remote_id
Stringremote_updated_at
DateTime (ISO 8601)size
IntegerSupported POST Model Parameters
drive
UUIDfile_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_created_at
DateTime (ISO 8601)remote_id
Stringremote_updated_at
DateTime (ISO 8601)size
IntegerSupported POST Model Parameters
drive
UUIDfile_url
Stringfolder
UUIDmime_type
Stringname
Stringpermissions
Permission[]id
stringremote_id
stringcreated_at
stringmodified_at
stringuser
stringgroup
stringtype
stringroles
arrayremote_created_at
DateTime (ISO 8601)remote_id
Stringremote_updated_at
DateTime (ISO 8601)size
Integer