Description
In the example request, there is a missing slash which results in an error.
Doc link: https://docs.atlas.mongodb.com/reference/api/database-users-create-a-user/
Please adjust
--request POST "https://cloud.mongodb.com/api/atlas/v1.0/groups/5356823b3794dee37132bb7b/databaseUsers"
|
to
--request POST "https://cloud.mongodb.com/api/atlas/v1.0/groups/5356823b3794dee37132bb7b/databaseUsers" \
|
There appears to be a stray comma after the username that results in an error
to
Complete example request:
curl --user "{USERNAME}:{APIKEY}" --digest \
|
--header "Accept: application/json" \
|
--header "Content-Type: application/json" \
|
--include \
|
--request POST "https://cloud.mongodb.com/api/atlas/v1.0/groups/5356823b3794dee37132bb7b/databaseUsers" \
|
--data '
|
{
|
"databaseName" : "admin",
|
"password" : "changeme123",
|
"roles" : [ {
|
"databaseName" : "sales",
|
"roleName" : "readWrite"
|
}, {
|
"databaseName" : "marketing",
|
"roleName" : "read"
|
} ],
|
"username" : "david"
|
}'
|
Scope of changes
Impact to Other Docs
MVP (Work and Date)
Resources (Scope or Design Docs, Invision, etc.)
|