Webhooks

Mettre à jour un endpoint de webhook

Modifie events/description/active (l'URL est immuable). Scope requis : webhooks:write.

put/webhooks/{id}

Request

  • Base URL: https://api.swipify.fr/api/v1
  • URL: https://api.swipify.fr/api/v1/webhooks/{id}
  • Auth: API key in header X-API-Key

Path parameters

idinteger required

Request body

eventsWebhookEventType[]
descriptionstring nullable
activeboolean

Response

Endpoint mis à jour

idinteger
urlstring uri
eventsWebhookEventType[]
descriptionstring nullable
activeboolean
secretPrefixstring

Préfixe du secret (indice d'identification ; jamais le secret complet).

lastTriggeredAtstring date-time nullable
createdAtstring date-time

Example response

{
  "url": "https://hooks.example.com/swipify",
  "secretPrefix": "whsec_AbC12xYz"
}

Changes

No recorded changes to this operation across all 1 revision of this API.