API / Webhooks

PATCH

/webhooks/endpoints/{id}

Update a webhook endpoint

Authentification : clé API Bearer requise.

Paramètres

NomDansTypeDescription
id*pathstringEndpoint ID

Corps JSON

Updated fields

NomTypeDescription
descriptionstring
disabledboolean
eventTypesarray<string>
urlstring

Exemple curl

curl -X PATCH https://api.sporee.fr/webhooks/endpoints/<id> \
  -H "Authorization: Bearer $SPORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Réponses

StatutDescriptionType
204No Content
400Bad Requestecho.HTTPError
401Unauthorizedecho.HTTPError
404Not Foundecho.HTTPError

Source machine : openapi.json · opération updateWebhookEndpoint