Grant Database Access
http
POST /cranebase/services/{serviceId}/grant
Gives a user its permissions on a database. 404 when either doesn’t exist, 400 when the user already has access.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| username | string | Yes | Full user name |
| database | string | Yes | Full database name |
Response (201)
json
{ "message": "Access granted." }