Update Webhook (webhook - UpdateWebhook)

Update Webhook.


/**
 * Webhook::TestWebhook
 *
 *  Test a webhook
 *
 *  id [int, required]: id of webhook to be tested
 */
{
  "username": "{*user*}",
  "usertoken": "{*token*}",
  "requesttype": "Webhook",
  "requestmethod": "TestWebhook",
  "details": {
    "id": "{*int*}", /* required */
  }
}


JSON Request Example:



json_request element


Field NameDescription
usernameUsername used to login to Pinpointe
usertokenUnique token assigned to Pinpointe account
requesttypeWebhook
requestmethodUpdateWebhook


details element


Field NameDescription
idWebhook id that needs tested (Required)
eventType of event (open, click, bounce, unsubscribe, complaint) 
urlURL to catch event posts 
nameUnique name for webhook 
enabledEnable the webhook (TRUE, FALSE) 


Successful Response


response element


Field NameDescription
statusReturns SUCCESS when successful


Unsuccessful Response


response element


Field NameDescription
statusReturns FAILED when unsuccessful
errormessageText explaining why webhook deletion failed