Details
-
Task
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
-
2
-
CET: Loge (20-26 Oct 2020)
Description
Description
On the Atlas API documentation page for creating a user: https://docs.atlas.mongodb.com/reference/api/database-users-create-a-user/
I believe the roles data type is mischaracterized as a "string array" whereas it should be an "array of documents".
Additionally it would be helpful if there was a sample payload, because my structure keeps getting errors:
payload:
{ "databaseName": "sample_mflix", "deleteAfterDate": "2020-10-25T10:49:40Z", "username": "foo", "password": "bar", "roles": [ { "databaseName": "admin", "roleName": "atlasAdmin", "collectionName": "users" } ] } |
response:
{ "detail": "Invalid attribute roleName specified.", "error": 400, "errorCode": "INVALID_ATTRIBUTE", "parameters": [ "roleName" ], "reason": "Bad Request"} |