Skip to content

Commit 630ae69

Browse files
authored
Merge pull request #9447 from soneff/patch-2
Add documentation on how to add applications to authentication event listener trigger conditions
2 parents b98f313 + 9795bf1 commit 630ae69

File tree

2 files changed

+88
-6
lines changed

2 files changed

+88
-6
lines changed

api-reference/beta/api/authenticationeventlistener-update.md

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ If successful, this method returns a `204 No Content` response code.
7272

7373
## Examples
7474

75-
### Request
76-
The following example shows a request to update an authentication event listener's trigger conditions or priority:
75+
### Example 1: Update an authentication event listener's trigger conditions or priority
76+
77+
#### Request
78+
The following example shows a request to update an authentication event listener's trigger conditions or priority.
7779
# [HTTP](#tab/http)
7880
<!-- {
7981
"blockType": "request",
@@ -129,7 +131,7 @@ Content-Type: application/json
129131

130132
---
131133

132-
### Response
134+
#### Response
133135
The following example shows the response.
134136
<!-- {
135137
"blockType": "response",
@@ -139,4 +141,43 @@ The following example shows the response.
139141
``` http
140142
HTTP/1.1 204 No Content
141143
```
144+
### Example 2: Add an application to an authentication event listener's trigger conditions
145+
146+
#### Request
147+
148+
The following example shows a request to add an application to an authentication event listener's trigger conditions.
149+
150+
<!-- {
151+
"blockType": "request",
152+
"name": "update_authenticationeventlistener"
153+
}
154+
-->
155+
``` http
156+
POST https://graph.microsoft.com/beta/identity/authenticationEventListeners/0313cc37-d421-421d-857b-87804d61e33e/conditions/applications/includeApplications
157+
Content-Type: application/json
142158
159+
{
160+
"@odata.type": "#microsoft.graph.authenticationConditionApplication",
161+
"appId": "63856651-13d9-4784-9abf-20758d509e19"
162+
}
163+
```
164+
165+
166+
#### Response
167+
The following example shows the response to a request to add an application to an authentication event listener's trigger conditions:
168+
169+
<!-- {
170+
"blockType": "response",
171+
"@odata.type": "microsoft.graph.authenticationConditionApplication",
172+
"truncated": true,
173+
}
174+
-->
175+
``` http
176+
HTTP/1.1 201 Created
177+
Content-Type: application/json
178+
179+
{
180+
"@odata.context": "https://graph.microsoft.com/beta/$metadata#identity/authenticationEventListeners('0313cc37-d421-421d-857b-87804d61e33e')/conditions/applications/includeApplications/$entity",
181+
"appId": "63856651-13d9-4784-9abf-20758d509e19"
182+
}
183+
```

api-reference/v1.0/api/authenticationeventlistener-update.md

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ If successful, this method returns a `204 No Content` response code.
6060

6161
## Examples
6262

63-
### Request
64-
The following example shows a request to update an authentication event listener's trigger conditions:
63+
### Example 1: Update an authentication event listener's trigger conditions
64+
65+
#### Request
66+
The following example shows a request to update an authentication event listener's trigger conditions.
6567

6668
# [HTTP](#tab/http)
6769
<!-- {
@@ -121,7 +123,7 @@ Content-Type: application/json
121123

122124
---
123125

124-
### Response
126+
#### Response
125127
The following example shows the response.
126128
<!-- {
127129
"blockType": "response",
@@ -132,3 +134,42 @@ The following example shows the response.
132134
HTTP/1.1 204 No Content
133135
```
134136

137+
### Example 2: Add an application to an authentication event listener's trigger conditions
138+
139+
#### Request
140+
The following example shows a request to add an application to an authentication event listener's trigger conditions.
141+
142+
<!-- {
143+
"blockType": "request",
144+
"name": "update_authenticationeventlistener"
145+
}
146+
-->
147+
``` http
148+
POST https://graph.microsoft.com/v1.0/identity/authenticationEventListeners/0313cc37-d421-421d-857b-87804d61e33e/conditions/applications/includeApplications
149+
Content-Type: application/json
150+
151+
{
152+
"@odata.type": "#microsoft.graph.authenticationConditionApplication",
153+
"appId": "63856651-13d9-4784-9abf-20758d509e19"
154+
}
155+
```
156+
157+
158+
#### Response
159+
The following example shows the response to a request to add an application to an authentication event listener's trigger conditions:
160+
161+
<!-- {
162+
"blockType": "response",
163+
"@odata.type": "microsoft.graph.authenticationConditionApplication",
164+
"truncated": true,
165+
}
166+
-->
167+
``` http
168+
HTTP/1.1 201 Created
169+
Content-Type: application/json
170+
171+
{
172+
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#identity/authenticationEventListeners('0313cc37-d421-421d-857b-87804d61e33e')/conditions/applications/includeApplications/$entity",
173+
"appId": "63856651-13d9-4784-9abf-20758d509e19"
174+
}
175+
```

0 commit comments

Comments
 (0)