NotificationSubscriptions

Subscribe to Notification

Creates a new Subscription. Returns a unique subscription ID for a successful request. See Event Objects for example notification objects and descriptions of their fields. <br />Example Request

            POST /NotificationSubscriptions/Subscribe
            {
              "Name": "New Subscription",
              "IsEnabled": true,
              "Type": "MSBot",
              "Content": 
              {
                "ConversationId":"a:1aV4BNOWtTdqJhkdgsdfhsdfhsgjdfgjdrtydjyj",
                "TenantId":"1111111-1111-1111-1111-111111111111",
                "UserId":"29:1oTNViX5ByDxfsgdfgsdhgjlnkkli",
                "UserName":"First Last",
                "ServiceUrl":"https://smba.trafficmanager.net/amer/"
              }
            }
post/NotificationSubscriptions

Request

Request body

Namestring

The user-friendly name for the subscription.

IsEnabledboolean

Defines if the subscription is active or inactive.

Type'MSTeams' required

Notification Subscription Type

ContentSystemObject required

Response

The subscription is created.

Idinteger

The unique subscription ID. Generated automatically and cannot be modified.

Changes

No recorded changes to this operation across all 1 revision of this API.