Report Filing Service

<back to all web services

BatchDeleteWebhookSubscriptions

DeleteBatchSubscriptionsWebhooksSync

Represents a request to delete webhook subscriptions.

Requires Authentication
The following routes are available for this service:
POST/sync/webhooks/subscriptions/delete
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports PwC.Elmaas.Core.Services.Contracts.Webhooks.Requests
Imports ServiceStack.Webhooks.ServiceModel.Types

Namespace Global

    Namespace PwC.Elmaas.Core.Services.Contracts.Webhooks.Requests

        '''<Summary>
        '''Represents a request to delete webhook subscriptions.
        '''</Summary>
        <Api(Description:="Represents a request to delete webhook subscriptions.")>
        Public Partial Class BatchDeleteWebhookSubscriptions
            Inherits BatchDeleteWebhookSubscriptionsBase
        End Class

        '''<Summary>
        '''Specifies a request to delete webhook subscriptions.
        '''</Summary>
        <Api(Description:="Specifies a request to delete webhook subscriptions.")>
        Public Partial Class BatchDeleteWebhookSubscriptionsBase
            Implements IPost
            Public Sub New()
                Subscriptions = New List(Of WebhookSubscription)
            End Sub

            '''<Summary>
            '''The subscriptions to delete.
            '''</Summary>
            <ApiMember(Description:="The subscriptions to delete.", IsRequired:=true, Name:="Subscriptions")>
            Public Overridable Property Subscriptions As List(Of WebhookSubscription)
        End Class
    End Namespace

    Namespace ServiceStack.Webhooks.ServiceModel.Types

        Public Partial Class SubscriptionConfig
            Public Overridable Property Url As String
            Public Overridable Property ContentType As String
            Public Overridable Property Secret As String
        End Class

        Public Partial Class WebhookSubscription
            Public Overridable Property Id As String
            Public Overridable Property Name As String
            Public Overridable Property Event As String
            Public Overridable Property IsActive As Boolean
            Public Overridable Property CreatedDateUtc As Date
            Public Overridable Property CreatedById As String
            Public Overridable Property LastModifiedDateUtc As Date
            Public Overridable Property Config As SubscriptionConfig
        End Class
    End Namespace
End Namespace

VB.NET BatchDeleteWebhookSubscriptions DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /sync/webhooks/subscriptions/delete HTTP/1.1 
Host: reportfiling.pwc.de 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"subscriptions":[{"id":"String","name":"String","event":"String","isActive":false,"createdDateUtc":"\/Date(-62135596800000-0000)\/","createdById":"String","lastModifiedDateUtc":"\/Date(-62135596800000-0000)\/","config":{"url":"String","contentType":"String","secret":"String"}}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

[{"subscription":{"id":"String","name":"String","event":"String","isActive":false,"createdDateUtc":"\/Date(-62135596800000-0000)\/","createdById":"String","lastModifiedDateUtc":"\/Date(-62135596800000-0000)\/","config":{"url":"String","contentType":"String","secret":"String"}},"history":[{"attemptedDateUtc":"\/Date(-62135596800000-0000)\/","statusDescription":"String","statusCode":"Continue","subscriptionId":"String","id":"String","eventId":"String"}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}]