So, I’m using API-V2 to update user permission and roles, and get the below error:
curl --user "<keys>" \
--digest \
--header "Accept: application/vnd.atlas.2023-11-15+json" \
--request POST "https://cloud.mongodb.com/api/atlas/v2/groups/id/databaseUsers/$external/<AWS-ARN>"
--data '
{
"awsIAMType": "USER",
"databaseName": "$external",
"groupId": "id",
"roles": [
{
"collectionName": "test",
"databaseName": "test2",
"roleName": "read"
}
],
"username": "ARN",
}'
And get the below error`:
<h1>Bad Message 400</h1><pre>reason: Ambiguous URI empty segment</pre>zsh: command not found: --data```