Referência de endpointsWebhooks
Alterar um webhook (rotacionar o secret, mudar eventos…)
PATCH
bearerAuthheader
AutorizaçãoBearer <token>Token de API criado em Configurações → API. Os escopos ficam vinculados ao token; cada operação lista o escopo exigido em x-scope.
id*stringFormato
uuidorg_id?stringSomente parceiros (orgs:manage): atua sobre esta organização filha. Também pode ser enviado como org_id em corpos JSON.
Formato
uuidapplication/json- body
url?stringFormato
urisecret?stringRotate the signing secret
Tamanho
16 <= length <= 256name?stringevents?array<>|nullmin_severity?stringValor em
"critical""high""medium""low""info"active?booleanWebhook
application/json- response
id?stringFormato
uuidorg_id?stringFormato
uuidstore_id?|null = organization-wide
Formato
uuidtype?stringValor em
"webhook""slack""teams"name?stringurl?|Formato
uriformat?stringValor em
"json""slack""teams"has_secret?booleanevents?array<>|null = all events
min_severity?stringValor em
"critical""high""medium""low""info"active?booleanlast_used_at?|Formato
date-timecreated_at?stringFormato
date-timeupdated_at?stringFormato
date-timecurl -X PATCH "https://example.com/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{ "events": null, "min_severity": "medium", "active": true }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "store_id": "7fe87115-950c-4ae8-bd7e-970406bc9ac0", "type": "webhook", "name": "string", "url": "http://example.com", "format": "json", "has_secret": true, "events": [ "alert.created" ], "min_severity": "critical", "active": true, "last_used_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}