Data API Keys
Update a Data API Key
Update a Data API key's settings. You can update the label, enable/disable Data API or OData access, toggle allow any database, and modify the list of databases this key can access.
Path Parameters
key*string
PATCH /otto/api/api-key/:key Parameter
Request Body
application/json
PATCH /otto/api/api-key/:key Request body
allowAnyDatabase?boolean
databases?array<>
Update the list of databases this key can access
isDataApi?boolean
isOData?boolean
label?string
Response Body
application/json
application/json
curl -X PATCH "https://your.server.net/otto/api/api-key/dk_KFji7VzNDOasdfqwerqOXFLJOhW" \ -H "Content-Type: application/json" \ -d '{ "allowAnyDatabase": false, "databases": [ "MyDatabase.fmp12", "OtherDatabase.fmp12" ], "isDataApi": true, "isOData": true, "label": "Data API Key (updated)" }'{
"messages": [
{
"code": 0,
"text": "ok"
}
],
"response": {}
}{
"messages": [
{
"code": 18011,
"text": "OttoFMS sample error"
}
],
"response": {}
}