Data API Keys
Update a Data API Key
PATCH
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.
key*stringPATCH /otto/api/api-key/:key Parameter
PATCH /otto/api/api-key/:key Request body
application/json- body
allowAnyDatabase?booleandatabases?array<>Update the list of databases this key can access
isDataApi?booleanisOData?booleanlabel?stringPATCH /otto/api/api-key/:key Positive response
application/json- response
messages*array<>response*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)"}'Example Response
{ "messages": [ { "code": 0, "text": "ok" } ], "response": {}}Was this page helpful?