Skip to content

Commit

Permalink
Merge pull request #9447 from soneff/patch-2
Browse files Browse the repository at this point in the history
Add documentation on how to add applications to authentication event listener trigger conditions
  • Loading branch information
Lauragra authored Oct 26, 2024
2 parents b98f313 + 9795bf1 commit 630ae69
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 6 deletions.
47 changes: 44 additions & 3 deletions api-reference/beta/api/authenticationeventlistener-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ If successful, this method returns a `204 No Content` response code.

## Examples

### Request
The following example shows a request to update an authentication event listener's trigger conditions or priority:
### Example 1: Update an authentication event listener's trigger conditions or priority

#### Request
The following example shows a request to update an authentication event listener's trigger conditions or priority.
# [HTTP](#tab/http)
<!-- {
"blockType": "request",
Expand Down Expand Up @@ -129,7 +131,7 @@ Content-Type: application/json

---

### Response
#### Response
The following example shows the response.
<!-- {
"blockType": "response",
Expand All @@ -139,4 +141,43 @@ The following example shows the response.
``` http
HTTP/1.1 204 No Content
```
### Example 2: Add an application to an authentication event listener's trigger conditions

#### Request

The following example shows a request to add an application to an authentication event listener's trigger conditions.

<!-- {
"blockType": "request",
"name": "update_authenticationeventlistener"
}
-->
``` http
POST https://graph.microsoft.com/beta/identity/authenticationEventListeners/0313cc37-d421-421d-857b-87804d61e33e/conditions/applications/includeApplications
Content-Type: application/json
{
"@odata.type": "#microsoft.graph.authenticationConditionApplication",
"appId": "63856651-13d9-4784-9abf-20758d509e19"
}
```


#### Response
The following example shows the response to a request to add an application to an authentication event listener's trigger conditions:

<!-- {
"blockType": "response",
"@odata.type": "microsoft.graph.authenticationConditionApplication",
"truncated": true,
}
-->
``` http
HTTP/1.1 201 Created
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#identity/authenticationEventListeners('0313cc37-d421-421d-857b-87804d61e33e')/conditions/applications/includeApplications/$entity",
"appId": "63856651-13d9-4784-9abf-20758d509e19"
}
```
47 changes: 44 additions & 3 deletions api-reference/v1.0/api/authenticationeventlistener-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ If successful, this method returns a `204 No Content` response code.

## Examples

### Request
The following example shows a request to update an authentication event listener's trigger conditions:
### Example 1: Update an authentication event listener's trigger conditions

#### Request
The following example shows a request to update an authentication event listener's trigger conditions.

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

---

### Response
#### Response
The following example shows the response.
<!-- {
"blockType": "response",
Expand All @@ -132,3 +134,42 @@ The following example shows the response.
HTTP/1.1 204 No Content
```

### Example 2: Add an application to an authentication event listener's trigger conditions

#### Request
The following example shows a request to add an application to an authentication event listener's trigger conditions.

<!-- {
"blockType": "request",
"name": "update_authenticationeventlistener"
}
-->
``` http
POST https://graph.microsoft.com/v1.0/identity/authenticationEventListeners/0313cc37-d421-421d-857b-87804d61e33e/conditions/applications/includeApplications
Content-Type: application/json
{
"@odata.type": "#microsoft.graph.authenticationConditionApplication",
"appId": "63856651-13d9-4784-9abf-20758d509e19"
}
```


#### Response
The following example shows the response to a request to add an application to an authentication event listener's trigger conditions:

<!-- {
"blockType": "response",
"@odata.type": "microsoft.graph.authenticationConditionApplication",
"truncated": true,
}
-->
``` http
HTTP/1.1 201 Created
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#identity/authenticationEventListeners('0313cc37-d421-421d-857b-87804d61e33e')/conditions/applications/includeApplications/$entity",
"appId": "63856651-13d9-4784-9abf-20758d509e19"
}
```

0 comments on commit 630ae69

Please sign in to comment.