FileMaker Files
Rename FM Files
Request Body
application/json
POST /otto/api/fm-file/rename Request body
fileName*string
newFileName*string
encryptionKey?string
copy?boolean
copyContainerData?boolean
Only used if copy is true
targetFolder?string
If copy is true, this will copy the file to the target folder. If copy is false, this will move the file to the target folder.
Value in
"default" | "secure" | "additionalFolder1" | "additionalFolder2"targetSubfolder?string
If copy is true, this will copy the file to the target subfolder. If copy is false, this will move the file to the target subfolder
Response Body
application/json
application/json
curl -X POST "https://your.server.net/otto/api/fm-file/rename" \ -H "Content-Type: application/json" \ -d '{ "fileName": "string", "newFileName": "string" }'{
"response": {
"ok": true,
"message": "string"
},
"messages": [
{
"code": 0.1,
"text": "ok"
}
]
}{
"response": {},
"messages": [
{
"code": 18011,
"text": "OttoFMS sample error"
}
]
}