FileRun 2026.4, API changes
This page lists the API endpoints added and changed since FileRun 2026.3.0.
For the changes of FileRun 2026.3.0, see API changes in 2026.3.
Version 2026.4.0
New permissions
The permission to make changes, changes, is split into eight permissions: edit_files, rename_move, delete_files, delete_folders, delete_permanently, collections, starring and write_metadata. The user and role endpoints take and hand out the eight, and each file endpoint asks for the one of its action. changes is still accepted from older clients. See Add FileRun user accounts for what each permission covers.
The permission admin_shared_drives lets a simple administrator use the shared drives endpoints.
New paths
The shared drives are reached at /ROOT/DRIVES/{id}, and the trash of a drive at /ROOT/DRIVES_TRASH/{id}, where {id} is the id of the drive. /ROOT/DRIVES lists the drives the account is a member of. See File paths.
New endpoints
| Endpoint | Documentation |
|---|---|
/api.php/Drive/files/copy |
Copying files or folders |
/api.php/Drive/files/share_as_collection |
Sharing several items as a collection |
/api.php/Drive/users/search |
Search user accounts |
/api.php/Drive/!admin/shared_drives/info |
Managing shared drives |
/api.php/Drive/!admin/shared_drives/create |
Managing shared drives |
/api.php/Drive/!admin/shared_drives/update |
Managing shared drives |
/api.php/Drive/!admin/shared_drives/delete |
Managing shared drives |
/api.php/Drive/!admin/shared_drives/members/list |
Managing shared drives |
/api.php/Drive/!admin/shared_drives/members/add |
Managing shared drives |
/api.php/Drive/!admin/shared_drives/members/update |
Managing shared drives |
/api.php/Drive/!admin/shared_drives/members/remove |
Managing shared drives |
/api.php/Core/!super/auth_sources/list |
OpenAPI specification |
/api.php/Core/!super/auth_sources/add |
OpenAPI specification |
/api.php/Core/!super/auth_sources/edit |
OpenAPI specification |
/api.php/Core/!super/auth_sources/delete |
OpenAPI specification |
/api.php/Core/!super/phpinfo |
OpenAPI specification |
Changed on every endpoint
- A write that the space quota refuses is answered with the status
507 Insufficient Storageinstead of403. The message in the answer is the same.
Changed endpoints
The file endpoints and the new permissions
- Renaming and moving require
rename_move. - Deleting requires
delete_filesfor a file anddelete_foldersfor a folder. Opening the trash and restoring from it requiredelete_files. Deleting from the trash and emptying it requiredelete_permanentlyas well. - Starring and unstarring require
starring. Changing tags and other metadata requireswrite_metadata. - Locking and unlocking require one of
edit_files,rename_moveanddelete_files. See Locking files.
/api.php/Drive/files/move
- Takes
overwrite. Set to 1, a move onto an existing file replaces it, and a move onto an existing folder merges the two folders. - Without
overwrite, a move onto a name already taken is refused, and the refusal carriesconflicts, the item in the way. See Moving files or folders. - Each item of
conflictscarriesincoming, the kind of the source item,fileorfolder, besideexisting, the kind of the item in the way. When the two differ,overwritecannot resolve the conflict.
/api.php/Drive/files/extract
- No longer requires the permission to make changes: being allowed to download the archive and to upload into the folder is enough.
- Extracting over an existing file requires
delete_filesand the permission to upload into its folder. An account with theeditorshare role, without the permission to delete, can no longer extract over existing files. See Extracting archives.
/api.php/Drive/files/zip
- No longer requires the permission to make changes. Adding to an existing archive requires
edit_files. See Zipping files and folders.
/api.php/Drive/files/trash/empty
- Takes an optional
path,/ROOT/DRIVES_TRASH/{id}, to empty the trash of a shared drive. See Managing the trash.
/api.php/Drive/files/browse
hasStarrequires thestarringpermission.- A listing of the trash carries
trash_deleted_by, the public id of the account that deleted the item, andtrash_deleted_by_name. Both are empty for the items deleted before FileRun2026.4.0. hasThumbanswered the opposite of the truth. It is fixed.weblink-fullcarried the password of the link underdownload_limit. It carries the download limit now.
/api.php/Drive/files/share
- Takes
download_limit, the number of downloads, andaccess_period, a length in seconds, for a file shared with a guest. Both are refused for a share with a group or with a user who is not a guest. See Sharing files and folders. - Takes
require_email_otpwithemail. The guest account that the share creates then ends every sign-in with a code sent to its e-mail address.
/api.php/Drive/files/weblink
- An
expirythat is not a valid date is refused with a message saying so. It gave a database error. - The answer carries
password, the password of the link. When the configuration requires a password on every link, the server generates one for a link created without a password, and the answer is where the client reads it.
/api.php/Drive/files/search
- A content search with a keyword that the search server cannot read is answered with the status
400, and the message gives the reason of the search server. - A search on a path that has no search, such as a web link,
Starredor the trash, is refused with the status400and "It is not possible to search in this location!". Before, the answer listed the whole folder, as if every item matched.
/api.php/Drive/files/thumbnail
- A request without
widthandheightgets a thumbnail of the default size.
/api.php/Core/account/info
permslists the eight permissions.readOnlyis still returned, worked out fromrename_move,delete_filesanddelete_folders. See Getting user account information.
/api.php/Core/users/search
- Is for administrators only, and requires the
adminscope. Any other account finds the people it can share with through the newDrive/users/search, with thesharescope. See Search user accounts.
/api.php/Core/!admin/users/add and /api.php/Core/!admin/users/edit
- Take the eight permissions,
admin_shared_drivesanddrive_create_shared_drives, the permission to create shared drives in the file manager.perms[changes]setsrename_move,delete_files,delete_foldersanddelete_permanently, except the ones the request sends itself. - The edit endpoint stores a permission left out as 0, so an edit that sends only
perms[changes]turns offedit_files,collections,starringandwrite_metadata. - A permission that means nothing without another one is stored as 0 when that one is 0, such as
shareordrive_create_shared_driveswithoutdownload. See Add FileRun user accounts. - Take
data[language], the language of the e-mail messages to the account, anddata[require_email_otp], an e-mail code at every sign-in. Left out of an edit,data[require_email_otp]is turned off. - The add endpoint says in its answer when the e-mail with the sign-in details could not be sent.
- The edit endpoint refuses the account of a shared drive.
- An e-mail address that another account already has is refused with "The e-mail address is already used by another user account!". The edit endpoint still accepts the address that the account already has.
- A guest account requires an e-mail address. The Guest role is refused for an account without an address, and the edit endpoint refuses to remove the address of a guest.
data[expiration_date]takes a date in the formYYYY-MM-DD. Any other value, such as2027-01-31 00:00:00or1/1/2027, is refused with "The date "..." is not valid.". The edit endpoint stores no expiration date for the superuser.- The add endpoint refuses a
data[owner]that is not an independent administrator, with "The owner of a user account has to be an independent administrator.". It stored any ID. - The edit endpoint takes the last name as
data[last_name], as the add endpoint does. data[require_2fa]is the option of the account only. The security setting that requires two-step authentication of every account no longer turns it on.- When the e-mail of
notifycannot be sent, the edit endpoint keeps the change and answers with success, with "The e-mail with the sign-in details could not be sent!" among its messages. Adata[two_step_reset]that fails makes the whole request fail, and nothing is saved. perms[homefolder]is refused when it leads to a folder inside the installation folder, or to a folder that contains the installation folder.- When an independent administrator edits an account that the superuser placed outside the home folder of the administrator, a
perms[homefolder]that is not empty is refused, and an empty one keeps the home folder. - A role whose owner was deleted cannot be given to a new account while it has a home folder template.
/api.php/Core/!admin/users/info
last_access_dateis renamedlast_web_ui_access, with the same value.- The response carries
last_seen, the time of the last activity of any kind,languageandrequire_email_otp. permsholds the eight permissions andadmin_shared_drives, and no longerreadonly. See Get FileRun user account information.
/api.php/Core/!admin/users/edit_groups
- In the answer,
add_to_grouplists only the groups joined by the request, and the newremove_from_grouplists the groups left. - Leaving a group removes the folder notifications, the web links and the stars of the account inside the shares of the group.
/api.php/Core/!admin/users/delete
- A refused deletion carries the reason in the
messageof the account. - The deletion of an account that owns accounts, groups, roles, metadata field sets or metadata file types, which it created as an independent administrator, is refused. The message gives their number.
- With
deleteHomeFolder, a home folder inside the installation folder, or one that contains the installation folder, is not deleted. The account is deleted, and itsmessageholds "The home folder could not be deleted!".
/api.php/Core/!admin/roles/info, /api.php/Core/!admin/roles/add and /api.php/Core/!admin/roles/edit
- The home folder path template is named
drive_homefolder_template. The old name,homefolder, is still handed out and accepted, and will be removed in a future version. - Take and hand out the eight permissions and
admin_shared_drives. The info endpoint still hands outchangesandreadonly. - On the Guest role,
edit_files,collectionsandstarringcan be granted. See Managing roles. - Take and hand out
drive_create_shared_drives, stored as 0 withoutdownload. - A role whose owner was deleted keeps its template and the home folders of its accounts. Only the superuser can change its template, and while it has one, an edit of the superuser must send a new
drive_homefolder_template, a full path.
/oauth2/token/
- An error no longer has the
messagefield. Readerror_description. - A refresh token that is expired, revoked or issued to another application is answered with the
invalid_granterror and the status400, where it wasinvalid_requestand401. An expired or revoked authorization code is answered withinvalid_granttoo. - A password grant with an empty
usernameis refused withinvalid_request.
/oauth2/authorize/
- A request refused for a scope that does not exist is sent back to the application with its
state. - A request for the
metadataor thecommentsscope without all oflist,upload,download,modifyanddeleteno longer fails with an error. - When the user clicks
Cancelon the authorization page, the browser is sent back to theredirect_uriof the application, with the erroraccess_deniedand thestatethat the application sent. It opened the start page of FileRun.
Removed: the PHP API client library
- The PHP API client library (
apps/Drive/!classes/vendor/FileRun/API/Client) is no longer part of the installation package.