ImportOS · Docs
API reference

PATCH /v1/webhooks/{id}

Change or re-enable a subscription

Change or re-enable a subscription

Changes only the fields that are sent. Setting enabled: true resets the failure counter. Requires scope write:deals.

  • Authentication: header Authorization: Bearer rv_live_... (API keys and scopes)
  • Required scope: write:deals
Descriptions of the operation, parameters and fields come from the OpenAPI specification (openapi.json).

Parameters

FieldInTypeRequiredDescription
idpathstring (uuid)yesResource id (UUID).

Request body

FieldTypeRequiredDescription
urlstring (uri)no
events"deal.stage_changed" | "payment.received" | "document.signed" | "lead.created" | "shipment.updated"[]no
enabledbooleannotrue re-enables a subscription disabled after repeated failures.
descriptionstring | nullno

Responses

200

The updated subscription.

application/json · Schema: Webhook

FieldTypeRequiredDescription
idstring (uuid)yes
urlstringyes
descriptionstring | nullyes
eventsstring[]yes
enabledbooleanyes
secretPrefixstring | nullyesFirst characters of the signing secret, to tell secrets apart. The full secret is never shown again.
failureCountintegeryes
lastSuccessAtstring | nullyesISO 8601 date-time (UTC).
lastFailureAtstring | nullyesISO 8601 date-time (UTC).

400

Invalid request parameters or body (code validation_error).

application/problem+json · Schema: Problem

401

Missing, malformed, unknown, revoked or expired API key (code unauthorized).

application/problem+json · Schema: Problem

403

The API key lacks the scope required by this endpoint (code insufficient_scope).

application/problem+json · Schema: Problem

404

Not found in this tenant.

application/problem+json · Schema: Problem

422

The URL is not acceptable.

application/problem+json · Schema: Problem

429

Rate limit exceeded for the tenant plan (code rate_limited). Wait Retry-After seconds.

application/problem+json · Schema: Problem

On this page