Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, could you please help me? I create a new user in couchDB this way:

curl -X PUT MY_URL/_users/org.couchdb.user:userName -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{"name": "userName", "password": "pass", "roles": [], "type": "user"}'

This method creates two things: document in '_users database' and a database. I have a problem with the database because the name of this one is chosen randomly. The questions: How can I set the name of the database when I create a new user? Or How can I retrieve the name which was created randomly ?


What I have tried:

Unfortunatelly, I have no idea :/
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900