FileMaker Files
Apply patch files to a file
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.
Request Body
application/json
POST /otto/api/fm-file/apply-patch Request body
account*string
Full Access or 'fmupgrade' account for the source file
closeMessage?string
Message shown to connected clients when the file is closed
Length
length <= 200encryptionKey?string
EAR password, required for encrypted files
password*string
Password for the source account
patches*array<>
Patch files applied sequentially in array order
Items
1 <= itemstargetFile*string
Name of the hosted FileMaker file to apply the patches to
Match
.fmp12Response Body
application/json
application/json
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" }'{
"messages": [
{
"code": 0,
"text": "ok"
}
],
"response": {}
}{
"messages": [
{
"code": 18011,
"text": "OttoFMS sample error"
}
],
"response": {}
}Was this page helpful?