How to call WebhookAPI

Chul So 17 Mar 2022

Hi,

It shows "TargetUrl" error message If I create new webhook with Post Type like below:

Do I need to do something for TargetUrl?

Url : https://sod.superoffice.com:443/Custxxxx/api/v1/Webhook

========== Begin : Response ===================

{
    "Error": true,
    "ErrorType": "ArgumentException",
    "Message": "Webhook TargetUrl did not respond with Success\r\nTargetUrl=https://dev.businessanalyze.com/Cust11631/apro/analysis/handlers/runtime.aspx?dashboardid=10250bbb-ad5c-457f-90ec-a35df2a9d019&actiontab=true&tabid=172\r\n",
    "FriendlyMessage": null,
    "ErrorSource": "SuperOffice.Services.Implementation"
}
========== End: Response ===================

 

-> sample request : https://docs.superoffice.com/api/reference/restful/rest/Webhook/v1Webhook_PostWebhook.html

========== Begin : Request -> Body ===================

{
  "WebhookId": 236,
  "Name": "Sawayn LLC",
  "Events": [
    "optio",
    "et"
  ],
  "TargetUrl": "https://dev.businessanalyze.com/Cust11631/apro/analysis/handlers/runtime.aspx?dashboardid=10250bbb-ad5c-457f-90ec-a35df2a9d019&actiontab=true&tabid=172",
  "Secret": "quo",
  "State": "Active",
  "Type": "aut",
  "Headers": {
    "Headers1": "saepe",
    "Headers2": "numquam"
  },
  "Properties": {
    "fieldName": {}
  },
  "Registered": "2022-03-19T18:25:51.5591203+02:00",
  "RegisteredAssociate": {
    "AssociateId": 518,
    "Name": "Gislason-Lemke",
    "PersonId": 500,
    "Rank": 237,
    "Tooltip": "ratione",
    "Type": "AnonymousAssociate",
    "GroupIdx": 904,
    "FullName": "Miss Darren Walsh",
    "FormalName": "O'Connell LLC",
    "Deleted": false,
    "EjUserId": 747,
    "UserName": "Koch, Rosenbaum and Stark"
  },
  "Updated": null,
  "UpdatedAssociate":null
 
}

========== End: Request -> Body ===================

 

Best Regards,

Chul So


RE: How to call WebhookAPI

David Hollegien 17 Mar 2022

Margrethe Romnes
21 Mar 2022
Not any more, this should be fixed and if you still experience it please let us know directly using the above email address.