Artboard
Data API Keys

Update a Data API Key

PATCH
/otto/api/api-key/{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

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

application/json
  1. body
allowAnyDatabase?boolean
databases?array<>

Update the list of databases this key can access

isDataApi?boolean
isOData?boolean
label?string

Response Body

PATCH /otto/api/api-key/:key Positive response

application/json
  1. response
messages*array<>
response*
Example Request
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?