1
0
Fork 0
arangodb/Documentation/Examples/RestDatabaseCreateUsers.gen...

12 lines
347 B
Plaintext

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