URL
https://devwebapi.leadmaster.com/api/LMWebAPI/AddWebhookSubscriptions?accesstoken={accesstoken}
Description
Add Webhook subscriptions
HttpMethod
POST
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
accesstoken | for the given subscription. |
Define this parameter in the request URI. |
ws | No documentation available. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "SubscriptionID": 1, "WebhookURL": "sample string 2", "SubscriptionEvent": "sample string 3", "OtherResource": "sample string 4" }
application/xml, text/xml
Sample:
<WebhookSubscriptions xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessObjects"> <OtherResource>sample string 4</OtherResource> <SubscriptionEvent>sample string 3</SubscriptionEvent> <SubscriptionID>1</SubscriptionID> <WebhookURL>sample string 2</WebhookURL> </WebhookSubscriptions>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
No documentation available.
Response body formats
application/json, text/json
Sample:
{ "SubscriptionID": 1 }
application/xml, text/xml
Sample:
<TypeWebhookSubscriptions xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessObjects"> <SubscriptionID>1</SubscriptionID> </TypeWebhookSubscriptions>