Skip to content

Commit 1c9a3b6

Browse files
authored
Merge pull request #25835 from microsoftgraph/Addingexampleforadditionalsource
Added Example for AdditionalSources
2 parents c531498 + 2782472 commit 1c9a3b6

File tree

2 files changed

+86
-8
lines changed

2 files changed

+86
-8
lines changed

api-reference/beta/api/security-ediscoverysearch-post-additionalsources.md

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ You can specify the following properties when you create a **dataSource**.
5656
If successful, this method returns a `201 Created` and a [microsoft.graph.security.dataSource](../resources/security-datasource.md) object in the response body.
5757

5858
## Examples
59-
60-
### Request
61-
The following example shows a request.
59+
### Example 1: Create an additional eDiscovery source from a site source
60+
#### Request
61+
The following example shows a request that creates an eDiscovery source from a site source.
6262

6363
# [HTTP](#tab/http)
6464
<!-- {
@@ -111,7 +111,7 @@ POST https://graph.microsoft.com/beta/security/cases/ediscoveryCases/{ediscovery
111111

112112
---
113113

114-
### Response
114+
#### Response
115115
The following example shows the response.
116116
>**Note:** The response object shown here might be shortened for readability.
117117
<!-- {
@@ -140,3 +140,42 @@ HTTP/1.1 201 Created
140140
}
141141
}
142142
```
143+
### Example 2: Create an additional eDiscovery source from a user source
144+
### Request
145+
The following example shows a request that creates an eDiscovery source from a user source.
146+
147+
```
148+
POST https://graph.microsoft.com/beta/security/cases/ediscoveryCases/17011798-ca63-4282-9cb3-0086f1042bfc/searches/2f5cc5a6-9728-4ba0-acfa-edce25e91244/additionalSources
149+
150+
{
151+
"@odata.type": "microsoft.graph.security.userSource",
152+
"email": "admin@edbig.onmicrosoft.com"
153+
}
154+
```
155+
#### Response
156+
157+
The following example shows the response.
158+
159+
``` http
160+
HTTP/1.1 200 Created
161+
162+
{
163+
"@odata.context": "https://graph.microsoft.com/beta/$metadata#security/cases/ediscoveryCases('17011798-ca63-4282-9cb3-0086f1042bfc')/searches('2f5cc5a6-9728-4ba0-acfa-edce25e91244')/additionalSources/$entity",
164+
"@odata.type": "#microsoft.graph.security.userSource",
165+
"displayName": "eDisco Big",
166+
"createdDateTime": "2024-11-19T20:11:11.5950513Z",
167+
"holdStatus": "0",
168+
"id": "5933247d-7011-494d-b9a6-65a3870d88fa",
169+
"email": "admin@edbig.onmicrosoft.com",
170+
"includedSources": "mailbox,site",
171+
"siteWebUrl": "https://edbig-my.sharepoint.com/personal/admin_edbig_onmicrosoft_com",
172+
"createdBy": {
173+
"application": null,
174+
"user": {
175+
"id": null,
176+
"displayName": null
177+
}
178+
}
179+
}
180+
```
181+

api-reference/v1.0/api/security-ediscoverysearch-post-additionalsources.md

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ You can specify the following properties when you create a **dataSource**.
5656
If successful, this method returns a `201 Created` and a [microsoft.graph.security.dataSource](../resources/security-ediscoverysearch.md) object in the response body.
5757

5858
## Examples
59-
60-
### Request
61-
The following example shows a request.
59+
### Example 1: Create an additional eDiscovery source from a site source
60+
#### Request
61+
The following example shows a request that creates an eDiscovery source from a site source.
6262

6363
# [HTTP](#tab/http)
6464
<!-- {
@@ -111,7 +111,7 @@ POST https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/{ediscovery
111111

112112
---
113113

114-
### Response
114+
#### Response
115115
The following example shows the response.
116116
>**Note:** The response object shown here might be shortened for readability.
117117
<!-- {
@@ -140,3 +140,42 @@ HTTP/1.1 201 Created
140140
}
141141
}
142142
```
143+
### Example 2: Create an additional eDiscovery source from a user source
144+
#### Request
145+
The following example shows a request that creates an eDiscovery source from a user source.
146+
147+
```
148+
POST https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/17011798-ca63-4282-9cb3-0086f1042bfc/searches/2f5cc5a6-9728-4ba0-acfa-edce25e91244/additionalSources
149+
150+
{
151+
"@odata.type": "microsoft.graph.security.userSource",
152+
"email": "admin@edbig.onmicrosoft.com"
153+
}
154+
```
155+
#### Response
156+
157+
The following example shows the response.
158+
159+
``` http
160+
HTTP/1.1 200 Created
161+
162+
{
163+
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#security/cases/ediscoveryCases('17011798-ca63-4282-9cb3-0086f1042bfc')/searches('2f5cc5a6-9728-4ba0-acfa-edce25e91244')/additionalSources/$entity",
164+
"@odata.type": "#microsoft.graph.security.userSource",
165+
"displayName": "eDisco Big",
166+
"createdDateTime": "2024-11-19T20:11:11.5950513Z",
167+
"holdStatus": "0",
168+
"id": "5933247d-7011-494d-b9a6-65a3870d88fa",
169+
"email": "admin@edbig.onmicrosoft.com",
170+
"includedSources": "mailbox,site",
171+
"siteWebUrl": "https://edbig-my.sharepoint.com/personal/admin_edbig_onmicrosoft_com",
172+
"createdBy": {
173+
"application": null,
174+
"user": {
175+
"id": null,
176+
"displayName": null
177+
}
178+
}
179+
}
180+
```
181+

0 commit comments

Comments
 (0)