webhooks
updateConfig
Update Webhook Client Config
put/v1/webhooks/configs/{configId}
Path parameters
configIdstring required
Short uuid (length 6) to identify the webhook configuration.
Request body
Example request
{
"eventName": "CustomerRequest_Created",
"url": "https://my-partner-service.api.com",
"httpMethod": "POST",
"enabled": true,
"auth": {
"authType": "BASIC",
"basicAuthConfig": {
"username": "secretUsername",
"password": "secret7825@!"
}
},
"filter": {
"keyToFilter": "customer_request.productId",
"supportedValues": [
"2324245",
"5253642"
]
}
}Response
Success - if the config is updated successfully
Example response
{
"eventName": "CustomerRequest_Created",
"url": "https://my-partner-service.api.com",
"httpMethod": "POST",
"enabled": true,
"auth": {
"authType": "BASIC",
"basicAuthConfig": {
"username": "secretUsername",
"password": "secret7825@!"
}
},
"filter": {
"keyToFilter": "customer_request.productId",
"supportedValues": [
"2324245",
"5253642"
]
}
}