put https://services.azuga.com/azuga-ws-oauth/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 | The time at which the API returns the response. Value returned is in milliseconds | Long |
data | API response message (Success/Failure) | String |
error | Error message | List |