Skip to content

Commit 6b9b448

Browse files
committed
Fix example structure: rename Example 1, add blockType metadata, add Location header
1 parent 0600875 commit 6b9b448

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

api-reference/v1.0/api/driveitem-assignsensitivitylabel.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ The following table lists the possible values for the error types.
8686

8787
## Examples
8888

89-
### Request
89+
### Example 1: Assign a sensitivity label
90+
91+
#### Request
9092

9193
The following example shows a request.
9294

@@ -110,7 +112,7 @@ Content-Type: application/json
110112

111113
---
112114

113-
### Response
115+
#### Response
114116

115117
The following example shows the response.
116118

@@ -146,6 +148,7 @@ Content-Type: application/json
146148

147149
Alternatively, identify the user by their user principal name.
148150

151+
<!-- { "blockType": "request", "name": "assignSensitivityLabel_apponly_upn", "tags": "service.graph", "sampleKeys": ["016GVDAP3RCQS5VBQHORFIVU2ZMOSBL25U"] } -->
149152
``` http
150153
POST https://graph.microsoft.com/v1.0/drives/{drive-id}/items/016GVDAP3RCQS5VBQHORFIVU2ZMOSBL25U/assignSensitivityLabel
151154
Content-Type: application/json
@@ -165,6 +168,7 @@ Content-Type: application/json
165168
<!-- { "blockType": "response" } -->
166169
```http
167170
HTTP/1.1 202 Accepted
171+
Location: https://contoso.sharepoint.com/_api/v2.0/monitor/QXNzaWduU2Vuc2l0aXZpdHlMYWJlbCxiMzc3ODY3OS04OWQ3LTRkYmYtYjg0MC1jYWM1NzRhY2FlNmE?tempAuth=******
168172
```
169173

170174
### Remarks

0 commit comments

Comments
 (0)