forked from microsoft/api-guidelines
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update graph/patterns/alternate-key.md
Co-authored-by: Peter Richards <[email protected]>
- Loading branch information
1 parent
9cac927
commit 5553331
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,7 +102,7 @@ GET https://graph.microsoft.com/v1.0/users/?$filter=ssn eq '123-45-6789' | |
```http | ||
GET https://graph.microsoft.com/v1.0/users/1a89ade6-9f59-4fea-a139-23f84e3aef66 | ||
GET https://graph.microsoft.com/v1.0/users(ssn='123-45-6789') | ||
GET https://graph.microsoft.com/v1.0/users(email='[email protected]') | ||
GET https://graph.microsoft.com/v1.0/users(mail='[email protected]') | ||
``` | ||
|
||
**NOTE:** When requesting a resource through its primary key you might want to prefer to use key-as-segment (as shown above). Also, the key-as-segment does not work for alternate keys. | ||
|