Edit a Webhook

Use this API to edit an existing webhook. You need to pass the ID (token) of the webhook in the API call. Only one webhook can be modified per API call.

Note: To obtain the ID of the webhook, you need to call the View API. For more information, see Webhooks View API

📘

Sample Request

https://api.azuga.com/azuga-ws/v3/webhooks/FXVYCV6XZ.json

{  
   "name":"Trips_Webhook",
   "url":"http://api.azuga.com",
   "email":"[email protected]",
   "paused":false,
   "retryRate":3,
   "pausedTill":null,
   "authorizationType":"BASIC",
   "webHookAuthKeyValues":[  
      {  
         "authKey":"azuga",
         "authValue":"azugapassword"
      }
   ],
   "webHookEventTypes":[  
      {  
         "eventType":"TRIP_START_MESSAGE"
      },
      {  
         "eventType":"TRIP_END_MESSAGE"
      },
      {  
         "eventType":"GPS_MESSAGE"
      },
      {  
         "eventType":"TRIP_END_MESSAGE"
      },
      {  
        "eventType":"GPS_MESSAGE"
      }
   ]
}

API Response Explanation

FieldDescriptionData Type
generatedAtInMillisAPI generation timestamp in MillisecondsLong
dataAPI Message (Success/Failure)String
errorError messageList
Language
Authorization
Header
Click Try It! to start a request and see the response here!