Enable or disable webhook signing
Enables webhook signing, or requests that it be disabled, for an enterprise.
Enabling (signingEnabled: true) takes effect immediately. It is idempotent, and
also cancels any pending disable request.
Disabling (signingEnabled: false) does not take effect immediately. It requires
OTP verification and moves the enterprise to DISABLE_PENDING. Webhooks continue to be
signed until the request is approved, at which point the status becomes DISABLED. If
the request is denied, the status returns to ENABLED. The response includes a
pendingDisableRequest with the evaluationId of the approval. Submitting a disable
request while one is already pending returns a 409. Disabling when signing is already
DISABLED is a no-op and returns the current settings.
Authorization: Caller must be an admin of the specified enterprise.
Path Params
-
enterpriseIdstring requiredThe enterprise ID.
Header Params
-
X-BitGo-OTPstringOTP code for verification. Required only when disabling webhook signing.
Body Params
object
-
signingEnabledboolean requiredtrueenables webhook signing immediately.falsesubmits a request to disable signing, which requires OTP verification and approval before it takes effect.
Responses
200
Settings updated. When disabling, status is DISABLE_PENDING and
signingEnabled remains true until the request is approved.
status is DISABLE_PENDING and
signingEnabled remains true until the request is approved.Response Body
object
-
statusstring enum requiredWebhook signing status for the enterprise.
ENABLED: webhooks are signed.DISABLED: webhooks are not signed.DISABLE_PENDING: a request to disable signing is awaiting approval. Webhooks continue to be signed until the request is approved.
ENABLEDDISABLEDDISABLE_PENDING -
signingEnabledboolean requiredWhether webhooks are currently signed.trueforENABLEDandDISABLE_PENDING,falseforDISABLED. -
updatedAtstring date-time nullableWhen the settings were last changed.nullif the enterprise has never changed its settings, in which casestatusreflects the platform default. -
pendingDisableRequestobject nullablePresent only whenstatusisDISABLE_PENDING.pendingDisableRequest object
-
evaluationIdstring uuid requiredID of the policy evaluation that must be approved to complete the disable request. -
requestedBystring requiredID of the user who requested that signing be disabled. -
requestedAtstring date-time requiredWhen the disable request was submitted.
-
400
Bad Request
Response Body
ONE OF
-
codestring -
messagestring -
statusinteger
-
codestring -
messagestring -
statusinteger -
failedValidationsobject
401
Unauthorized
Response Body
object
-
codestring -
messagestring -
statusinteger
403
Forbidden
Response Body
object
-
codestring -
messagestring -
statusinteger
409
Conflict - The request conflicts with the current state of the resource
Response Body
object
-
codestring -
messagestring -
statusinteger
500
Server Error - Transient error please try again
Response Body
object
-
codestring -
messagestring -
statusinteger