Skip to main content

Edit a Webhook Subscription

PATCH 

/v1/webhook-subscriptions/:id

Edit a Webhook Subscription

Request​

Path Parameters

    id stringrequired

    Id of the Webhook Subscription.

Body

required

    url website

    URL to which notifications should be sent (https only)

    Example: https://example.com/webhooks
    events WebhookEventsEnum (string)[]

    Events to subscribe to

    Possible values: [validation_request.approved, validation_request.rejected, agent_verification.pending_review, agent_verification.pending_user_verification, agent_verification.approved, agent_verification.rejected, monitoring_subscription.updated, eligibility_subscription.updated, validation_submission.created, validation_submission.succeeded, validation_submission.failed, validation_submission.updated, donation.hosted.payment_received, donation.created, donation.settled, donation.disbursed, donation.payment_successful, donation.cancelled, donation.reassigned]

Responses​

Successfully edited a Webhook Subscription

Schema

    data

    object

    id string
    Example: webhooksubscription_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    events WebhookEventsEnum (string)[]

    Possible values: [validation_request.approved, validation_request.rejected, agent_verification.pending_review, agent_verification.pending_user_verification, agent_verification.approved, agent_verification.rejected, monitoring_subscription.updated, eligibility_subscription.updated, validation_submission.created, validation_submission.succeeded, validation_submission.failed, validation_submission.updated, donation.hosted.payment_received, donation.created, donation.settled, donation.disbursed, donation.payment_successful, donation.cancelled, donation.reassigned]

    url website
    Example: https://example.com/my-webhook-handler
    secret string
    createdAt date-time
    updatedAt date-timenullable
    deletedAt date-timenullable
    object string
    Example: webhook_subscription
Loading...