API Keys
Set the database access level
Sets the database access levels for the database dbname of API key with keyid.
Note: Requires administrator permissions.
put/_api/key/{keyid}/database/{dbname}
Request
- The document declares no server URL.
- Auth
- API key in header Authorization
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
keyidstring string required
The id of the API key.
dbnamestring string required
The name of the database.
Request body
Example request
{
"grant": "rw"
}Response
Successfully changed access level.
Example response
{
"code": 200,
"result": "rw"
}Changes
No recorded changes to this operation across all 1 revision of this API.