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://services.azuga.com/azuga-ws-oauth/v3/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
generatedAtInMillisThe time at which the API returns the response. Value returned is in millisecondsLong
dataAPI response message (Success/Failure)String
errorError messageList
Language
Credentials
Header
Click Try It! to start a request and see the response here!