Artboard
FileMaker Files

Copy and compress FileMaker file

POST
/otto/api/fm-file/copy-compress

Requires FileMaker Server 20.3 or later. This endpoint will copy and compress a FileMaker file to a specified target path. Accepts a single file or an array of files for batch processing.

Request Body

POST /otto/api/fm-file/copy-compress Request body

application/json
  1. body
encryptionKey?string

Optional encryption key

force?boolean

Force overwrite existing file at target path

password*string

FileMaker password

username*string

FileMaker username

inPlace*boolean

Whether to compress the file in place

sourceFile*string

File name to compress in the FileMaker format

Response Body

POST /otto/api/fm-file/copy-compress Positive response

application/json
  1. response
messages*array<>
response*
Example Request
curl -X POST 'https://your.server.net/otto/api/fm-file/copy-compress' \  -H 'Content-Type: application/json' \  -d '{  "password": "string",  "username": "string",  "inPlace": true,  "sourceFile": "string"}'
Example Response
{  "messages": [    {      "code": 0,      "text": "ok"    }  ],  "response": {}}

Was this page helpful?