Openminds Sock API
Add Existing Database Login
Adds an existing login to the given database.
You will need the id of the current database user. You can find this in the database#index and database#show responses inside the grants block.
URL
/databases/:database_id/add_existing_login
Method
POST
Data parameters
Required
user_token=[string]
client_token=[string]
user_id=[integer]
Optional
access_level=[string]
: 'read-write' or 'read'
Sample usage
Basic
$ curl -X POST https://sock.openminds.be/api/v1/databases/12/add_existing_login -d user_token=1234 -d client_token=5678
-d user_id=id