Run a script via schedule
Run a script via schedule
Run a script using the FileMaker Scheduled Script Scripting Engine. It is an alternative to running a script via the Data API, oData API, or Custom Web Publishing. Unlike those, this method doesn't require an an account with an extended privilege set, other than the one required to run on a Server.
The Schedule will be created, run and then deleted.
Request Body
application/json
POST /otto/api/script/run-via-schedule Request body
file*
File to run script on
script*
Script information
Response Body
application/json
application/json
curl -X POST "https://your.server.net/otto/api/script/run-via-schedule" \ -H "Content-Type: application/json" \ -d '{ "file": { "name": "string", "user": "string", "password": "string" }, "script": { "name": "string" } }'{
"response": {
"scriptStarted": true,
"lastError": -1,
"ok": true
},
"messages": [
{
"code": 0.1,
"text": "ok"
}
]
}{
"response": {},
"messages": [
{
"code": 18011,
"text": "OttoFMS sample error"
}
]
}