shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/database <<EOF
{
"name" : "mydb",
"users" : [
{
"username" : "admin",
"passwd" : "secret",
"active" : true
},
{
"username" : "tester",
"passwd" : "test001",
"active" : false
}
]
}
EOF
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"error" : false,
"code" : 201,
"result" : true
}