Artboard
FileMaker Files

Copy and compress FileMaker file

Requires FileMaker Server 20.3 or later. This endpoint will copy and compress a FileMaker file to a specified target path.

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

Request Body

application/json

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

username?string

FileMaker username

password?string

FileMaker password

encryptionKey?string

Optional encryption key

force?boolean

Force overwrite existing file at target path

sourceFile*string

File name to compress in the FileMaker format

inPlace*boolean

Whether to compress the file in place

Response Body

application/json

application/json

curl -X POST "https://your.server.net/otto/api/fm-file/copy-compress" \  -H "Content-Type: application/json" \  -d '{    "username": "string",    "password": "string",    "sourceFile": "string",    "inPlace": true  }'
{
  "response": {
    "ok": true,
    "message": "string"
  },
  "messages": [
    {
      "code": 0.1,
      "text": "ok"
    }
  ]
}
{
  "response": {},
  "messages": [
    {
      "code": 18011,
      "text": "OttoFMS sample error"
    }
  ]
}