Proteside Docs
Referencia de endpointsWebhooks

Modificar un webhook (rotar el secret, cambiar eventos…)

PATCH
/webhooks/{id}

Autorización

bearerAuth
headerAutorizaciónBearer <token>

Token de API creado en Ajustes → API. Los alcances están vinculados al token; cada operación indica el alcance requerido en x-scope.

Parámetros de ruta

id*string
Formatouuid

Parámetros de consulta

org_id?string

Solo socios (orgs:manage): actúa sobre esta organización hija. También se puede enviar como org_id en cuerpos JSON.

Formatouuid

Cuerpo de la solicitud

application/json
  1. body
url?string
Formatouri
secret?string

Rotate the signing secret

Longitud16 <= length <= 256
name?string
events?array<>|null
min_severity?string
Valor en"critical""high""medium""low""info"
active?boolean

Cuerpo de la respuesta

Webhook

application/json
  1. response
id?string
Formatouuid
org_id?string
Formatouuid
store_id?|

null = organization-wide

Formatouuid
type?string
Valor en"webhook""slack""teams"
name?string
url?|
Formatouri
format?string
Valor en"json""slack""teams"
has_secret?boolean
events?array<>|

null = all events

min_severity?string
Valor en"critical""high""medium""low""info"
active?boolean
last_used_at?|
Formatodate-time
created_at?string
Formatodate-time
updated_at?string
Formatodate-time
curl -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"}