FileMaker Files
Apply patch files to a file
POST
Requires FileMaker Server 26 or later. Closes a hosted file, backs it up, applies the supplied patch files in order using FMUpgradeTool, reverts to the backup if any patch fails, then reopens the file. Runs asynchronously — returns a processId to track progress.
POST /otto/api/fm-file/apply-patch Request body
application/json- body
account*stringFull Access or 'fmupgrade' account for the source file
closeMessage?stringMessage shown to connected clients when the file is closed
Length
length <= 200encryptionKey?stringEAR password, required for encrypted files
password*stringPassword for the source account
patches*array<>Patch files applied sequentially in array order
Items
1 <= itemstargetFile*stringName of the hosted FileMaker file to apply the patches to
Match
.fmp12POST /otto/api/fm-file/apply-patch Positive response
application/json- response
messages*array<>response*curl -X POST 'https://your.server.net/otto/api/fm-file/apply-patch' \ -H 'Content-Type: application/json' \ -d '{ "account": "string", "password": "string", "patches": [ { "contentsBase64": "string", "name": "string" } ], "targetFile": "string"}'Example Response
{ "messages": [ { "code": 0, "text": "ok" } ], "response": {}}Was this page helpful?