put https://api.azuga.com/azuga-ws/v3/webhooks/.json
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
{
"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
Field | Description | Data Type |
---|---|---|
generatedAtInMillis | API generation timestamp in Milliseconds | Long |
data | API Message (Success/Failure) | String |
error | Error message | List |