File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ except that it uses the following base URL:
19
19
20
20
.. code-block:: shell
21
21
22
- https://cloud.mongodbgov.com/api/atlas/v1.0
22
+ https://cloud.mongodbgov.com/api/atlas/v2
23
23
24
24
|cloudgov-short| authenticates |api| requests with ``SHA-256`` using
25
25
:atlas:`HTTP Digest Authentication </api/#std-label-api-authentication>`.
@@ -34,8 +34,9 @@ This ``curl`` example retrieves database users for a project:
34
34
curl --user "{PUBLIC-KEY}:{PRIVATE-KEY}" --digest \
35
35
--header "Accept: application/json" \
36
36
--header "Content-Type: application/json" \
37
+ --header "Accept: application/vnd.atlas.2023-01-01+json" \ # update date to desired API version
37
38
--include \
38
- --request GET "https://cloud.mongodbgov.com/api/atlas/v1.0 /groups/{PROJECT-ID}/databaseUsers?pretty=true"
39
+ --request GET "https://cloud.mongodbgov.com/api/atlas/v2 /groups/{PROJECT-ID}/databaseUsers?pretty=true"
39
40
40
41
- You can find your ``PROJECT-ID`` in your :guilabel:`Project Settings`.
41
42
You can’t perform that action at this time.
0 commit comments