Skip to content

Commit 1aeba70

Browse files
authored
Merge pull request #66 from gmiller-mdb/DOCSP-44955-update-api-admin
DOCSP-44955-update-api-admin
2 parents 25097b1 + 7e747e2 commit 1aeba70

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/api.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ except that it uses the following base URL:
1919

2020
.. code-block:: shell
2121

22-
https://cloud.mongodbgov.com/api/atlas/v1.0
22+
https://cloud.mongodbgov.com/api/atlas/v2
2323

2424
|cloudgov-short| authenticates |api| requests with ``SHA-256`` using
2525
:atlas:`HTTP Digest Authentication </api/#std-label-api-authentication>`.
@@ -34,8 +34,9 @@ This ``curl`` example retrieves database users for a project:
3434
curl --user "{PUBLIC-KEY}:{PRIVATE-KEY}" --digest \
3535
--header "Accept: application/json" \
3636
--header "Content-Type: application/json" \
37+
--header "Accept: application/vnd.atlas.2023-01-01+json" \ # update date to desired API version
3738
--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"
3940

4041
- You can find your ``PROJECT-ID`` in your :guilabel:`Project Settings`.
4142

0 commit comments

Comments
 (0)