Skip to content

Commit 12127ed

Browse files
fix markdown
1 parent d9ac3ed commit 12127ed

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docs/apis/webhooks/lists/create-subscription.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
---
22
title: Create a new subscription
33
description: Creates a new webhook subscription on a SharePoint list.
4-
ms.date: 02/08/2018
4+
ms.date: 10/20/2020
55
ms.prod: sharepoint
66
ms.localizationpriority: high
77
---
8-
9-
108
# Create a new subscription
119

1210
Creates a new webhook subscription on a SharePoint list.
@@ -33,7 +31,7 @@ List|Manage
3331

3432
## HTTP request
3533

36-
```
34+
```http
3735
POST /_api/web/lists('list-id')/subscriptions
3836
```
3937

@@ -83,13 +81,14 @@ Content-Type: application/json
8381

8482
## URL validation
8583

86-
**IMPORTANT - Before a new subscription is created, SharePoint sends a request with a validation token in the querystring of the request to the notification URL provided. Your service must respond to this request by returning the validation token. If your service fails to validate the request in this way, the subscription is not created.**
84+
> [!IMPORTANT]
85+
> Before a new subscription is created, SharePoint sends a request with a validation token in the querystring of the request to the notification URL provided. Your service must respond to this request by returning the validation token. If your service fails to validate the request in this way, the subscription is not created.**
8786
8887
### Example
8988

90-
```
89+
```csharp
9190
{
92-
return new OkObjectResult(req.Query["validationtoken"].ToString());
91+
return new OkObjectResult(req.Query["validationtoken"].ToString());
9392
}
9493
```
9594

0 commit comments

Comments
 (0)