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",
	"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",
	"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"
	}
}
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Id by Webhook

Query Params
string

Phone Id from meta.If it has no credentials or if the credentials allow it, this value replaces the credential user

Body Params

Command: Type list Webhook (Meta), Id by Webhook, Headers list by Webhook, Endpoint by Webhook

uuid
headers
object | null
string | null
types
array of objects | null
types
string
enum
Allowed:
Headers
credentials
object

Gateway credentials used to collect from request user data such as access group, credential type and correlated phoneId

string
Defaults to 4
Responses
200

Success

204

No Content

500

Server Error

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here!