Data API Keys
Create a Data API Key
Create an OttoFMS Data API Key
This endpoint creates a Data API Key for the FileMaker file with the specified user and password. These credentials must have the fmrest privilege set for the file
Request Body
application/json
POST /otto/api/api-key Request body
database*string
FileMaker File Name ending with .fmp12 or .fmp12.zip
Match
.fmp12label?string
Default
"(no label)"user*string
pass*string
returnExisting?boolean
If true, will return an existing key for this file
Default
falseisDataApi?boolean
Default
trueisOData?boolean
Default
falseResponse Body
application/json
application/json
curl -X POST "https://your.server.net/otto/api/api-key" \ -H "Content-Type: application/json" \ -d '{ "database": "string", "user": "string", "pass": "string" }'{
"response": {
"key": "string",
"token": "string"
},
"messages": [
{
"code": 0.1,
"text": "ok"
}
]
}{
"response": {},
"messages": [
{
"code": 18011,
"text": "OttoFMS sample error"
}
]
}