Artboard
FileMaker Files

Apply patch files to a file

POST
/otto/api/fm-file/apply-patch

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

POST /otto/api/fm-file/apply-patch Request body

application/json
  1. body
account*string

Full Access or 'fmupgrade' account for the source file

closeMessage?string

Message shown to connected clients when the file is closed

Lengthlength <= 200
encryptionKey?string

EAR password, required for encrypted files

password*string

Password for the source account

patches*array<>

Patch files applied sequentially in array order

Items1 <= items
targetFile*string

Name of the hosted FileMaker file to apply the patches to

Match.fmp12

Response Body

POST /otto/api/fm-file/apply-patch Positive response

application/json
  1. response
messages*array<>
response*
Example Request
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?