Folders
The Folder object is used to represent a collection of files and/or folders in the workspace. Could be within a drive, if it exists.
Properties

idUUID
Required

remote_idString
Optional
The third-party API ID of the matching object.

created_atDateTime (ISO 8601)
Required
The datetime that this object was created by Merge.

modified_atDateTime (ISO 8601)
Required
The datetime that this object was modified by Merge.

nameString
Optional
The folder's name.

folder_urlString
Optional
The URL to access the folder.

sizeInteger
Optional
The folder's size, in bytes.

descriptionString
Optional
The folder's description.

parent_folderUUID
Optional
The folder that the folder belongs to.

driveUUID
Optional
The drive that the folder belongs to.

permissionsPermission[]
Required
The Permission object
The Permission object is used to represent a user's or group's access to a File or Folder. Permissions are unexpanded by default.
Properties

idUUID
Required

remote_idString
Optional
The third-party API ID of the matching object.

created_atDateTime (ISO 8601)
Required
The datetime that this object was created by Merge.

modified_atDateTime (ISO 8601)
Required
The datetime that this object was modified by Merge.

userUUID
Optional
The user that is granted this permission.

groupUUID
Optional
The group that is granted this permission.

typeEnum
Optional
Denotes what type of people have access to the file. Possible values include: USER, GROUP, COMPANY, ANYONE. In cases where there is no clear mapping, the original value passed through will be returned.

rolesArray
Optional
The permissions that the user or group has for the File or Folder. It is possible for a user or group to have multiple roles, such as viewing & uploading. Possible values include: READ, WRITE, OWNER. In cases where there is no clear mapping, the original value passed through will be returned.

remote_created_atDateTime (ISO 8601)
Optional
When the third party's folder was created.

remote_updated_atDateTime (ISO 8601)
Optional
When the third party's folder was updated.

remote_was_deletedBoolean
Required
Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

field_mappingsObject
Optional

remote_dataArray
Optional


GET
/folders

https://api.merge.dev/api/filestorage/v1/folders

US
EU
APAC

Returns a list of Folder objects.


Query & Path Parameters

created_afterDateTime (ISO 8601)
Optional
If provided, will only return objects created after this datetime.

created_beforeDateTime (ISO 8601)
Optional
If provided, will only return objects created before this datetime.

cursorString
Optional
The pagination cursor value.

drive_idString
Optional
If provided, will only return folders in this drive.

expandString
Optional
Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

include_deleted_dataBoolean
Optional
Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

include_remote_dataBoolean
Optional
Whether to include the original data Merge fetched from the third-party to produce these models.

include_shell_dataBoolean
Optional
Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

modified_afterDateTime (ISO 8601)
Optional
If provided, only objects synced by Merge after this date time will be returned.

modified_beforeDateTime (ISO 8601)
Optional
If provided, only objects synced by Merge before this date time will be returned.

nameString
Optional
If provided, will only return folders with this name. This performs an exact match.

page_sizeInteger
Optional
Number of results to return per page.

parent_folder_idString
Optional
If provided, will only return folders in this parent folder. If null, will return folders in root directory.

remote_idString
Optional
The API provider's ID for the given object.

Field support by integration
See all supported fields
Use the /linked-accounts endpoint to pull platform support information
Box
Box
Dropbox
Dropbox
Google Drive
Google Drive
OneDrive
OneDrive
SharePoint
SharePoint
POST
/folders
Beta

https://api.merge.dev/api/filestorage/v1/folders

US
EU
APAC

Creates a Folder object with the given values.


Query & Path Parameters

is_debug_modeBoolean
Optional
Whether to include debug fields (such as log file links) in the response.

run_asyncBoolean
Optional
Whether or not third-party updates should be run asynchronously.
Body Parameters

modelObject
Required
Find available fields below under “Model Parameters”.
Model Parameters
View app-specific writable fields under “Field support by platform” in this section.

nameString
The folder's name.

folder_urlString
The URL to access the folder.

sizeInteger
The folder's size, in bytes.

descriptionString
The folder's description.

parent_folderUUID
The folder that the folder belongs to. Must pass in a valid Merge ID, which can be obtained from the id field in the Folder object.

driveUUID
The drive that the folder belongs to. Must pass in a valid Merge ID, which can be obtained from the id field in the Drive object.

permissionsArray

integration_paramsObject

linked_account_paramsObject

Field support by integration
See all supported fields
Use the /linked-accounts endpoint to pull platform support information
Box
Box
Dropbox
Dropbox
Google Drive
Google Drive
OneDrive
OneDrive
SharePoint
SharePoint
To include the correct model fields when making POST requests, use the GET /folders/meta/post endpoint. Learn more in our /meta guide.
GET
/folders/{id}

https://api.merge.dev/api/filestorage/v1/folders/{id}

US
EU
APAC

Returns a Folder object with the given id.


Query & Path Parameters

expandString
Optional
Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

idUUID
Required

include_remote_dataBoolean
Optional
Whether to include the original data Merge fetched from the third-party to produce these models.
Field support by integration
See all supported fields
Use the /linked-accounts endpoint to pull platform support information
Box
Box
Dropbox
Dropbox
Google Drive
Google Drive
OneDrive
OneDrive
SharePoint
SharePoint
GET
/folders/meta/post

https://api.merge.dev/api/filestorage/v1/folders/meta/post

US
EU
APAC

Returns metadata for FileStorageFolder POSTs.


Field support by integration
See all supported fields
Use the /linked-accounts endpoint to pull platform support information
Box
Box
Dropbox
Dropbox
Google Drive
Google Drive
OneDrive
OneDrive
SharePoint
SharePoint