patch https://examplebaseURL.com/v1/api/apps//contact-event-sub
Response Format
Parameter | Type | Description |
---|---|---|
enabled | boolean | True / False |
url | String | Webhook url |
updatedAt | String | Updated date time |
Webhook URL requirement:
The webhook URL needs to be verified, you will get a POST request with an Action, and are required to set the response in JsonResponse format as below:
Note that the JsonResponse.Result is JSON encoding of the ActionEndpointResponse
ActionEndpointRequest {
+ Challenge string json:"challenge"
+ }ActionEndpointResponse {
+ Challenge string json:"challenge"
+ }JsonResponse {
+ Code int json:"code"
+ Result json.RawMessage json:"result"
+ }