Atualização de webhook por Id

Para atualizar um webhook cadastrado, basta enviar uma requisição PUT para o endpoint api/Webhooks/{WEBHOOK_ID}:

curl --request PUT \
  --url https://api-cerberus-kong.socialminer.tech/api/Webhooks/{WEBHOOK_ID} \
  --header 'Content-Type: application/json' \
  --header 'apikey: {APIKEY}' \
  --header 'version: 4.0' \
  --data '{
	    "phone": "5511964557557",
		"meta_version":"LASTEST",
	    "headers": {
	    	"additionalProp1": "string",
	    	"additionalProp2": "string",
	    	"additionalProp3": "string"
	    },
	    "endpoint": "https://webhook.site/1d2befb1-c201-41e9-be6d-53677ca53bc7"
}'

Caso exista o webhook cadastrado e a atualização tenha ocorrido com sucesso, o mesmo é retornados numa lista conforme abaixo com o http status 200:

{
	"success": true,
	    "id": "db4d83ae-0dfb-4128-8150-f29ba33cb45d",
	    "phone": "12360671399507",
	    "phone_id": "12360671399507",
		"meta_version":"LASTEST",
	    "endpoint": "https://webhook.site/1d2befb1-c201-41e9-be6d-53677ca53bc7",
 	"create_date": "2023-03-27T14:54:23.099Z",
	    "update_date": "2023-03-28T13:19:29.8895881+00:00",
	    "headers": {
		    "additionalProp1": "string",
		    "additionalProp2": "string",
		    "additionalProp3": "string"
	    }
}
Language
Click Try It! to start a request and see the response here!