Ir al contenido
Maple

Webhooks

Updates the notification URL, subscribed event types, or enabled/disabled status.

Esta página aún no está disponible en tu idioma.

PATCHhttps://api.maple.inc/v1/webhook_subscriptions/{subscriptionId}API key

Updates the notification URL, subscribed event types, or enabled/disabled status. The signing secret is unchanged.

Authorization

Send your API key as Authorization: Bearer <key>: mpk_test_… against the sandbox (https://api.staging.maple.inc/v1), mpk_live_… against production. See Authentication. The samples read the key from MAPLE_KEY and the base URL from MAPLE_BASE, as set up in the Quickstart.

Parameters

  • subscriptionId string path required

Request body

application/json, required.

  • notification_url string or null

  • event_types string[] or null

  • status string or null

Responses

200 OK

  • object string required

    Always webhook_subscription.

  • id string required

  • environment string required

    One of test, live.

  • notification_url string required

  • event_types string[] required

  • status string required

    One of enabled, disabled.

  • created_at string required

  • updated_at string required

Errors

  • 400 Bad request DeveloperApiBadRequest

  • 401 Unauthorized DeveloperApiUnauthorized

  • 403 Forbidden DeveloperApiForbidden

  • 404 Not found DeveloperApiNotFound

  • 429 Too many requests DeveloperApiRateLimited

Every error body names the error in _tag, explains it in message, and says where to report it in feedback. See Errors.

A 429 also sends Retry-After: Seconds to wait before retrying; also returned as retry_after in the body.