Artboard
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.

PATCH
/otto/api/api-key/{key}

Path Parameters

key*string

PATCH /otto/api/api-key/:key Parameter

Request Body

application/json

PATCH /otto/api/api-key/:key Request body

label?string
isDataApi?boolean
isOData?boolean
allowAnyDatabase?boolean
databases?array<>

Update the list of databases this key can access

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 '{    "label": "Data API Key (updated)",    "isDataApi": true,    "isOData": true,    "allowAnyDatabase": false,    "databases": [      "MyDatabase.fmp12",      "OtherDatabase.fmp12"    ]  }'
{
  "response": {},
  "messages": [
    {
      "code": 0,
      "text": "ok"
    }
  ]
}
{
  "response": {},
  "messages": [
    {
      "code": 18011,
      "text": "OttoFMS sample error"
    }
  ]
}