CREATE - Create webhook
POST {{baseUrl}}/config/webhook
This endpoint is used to create a webhook to trigger events from consent building block to an external IT system.
Request Body
{"webhook"=>{"payloadUrl"=>"<string>", "contentType"=>"<string>", "subscribedEvents"=>{"consentManagementWebhook"=>["<string>", "<string>"], "digitalWalletWebhook"=>["<string>", "<string>"]}, "disabled"=>"<boolean>", "secretKey"=>"<string>", "skipSslVerification"=>"<boolean>", "timestamp"=>"<string>", "id"=>"<string>", "orgId"=>"<string>"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"webhook":{"payloadUrl":"\u003cstring\u003e","contentType":"\u003cstring\u003e","subscribedEvents":{"consentManagementWebhook":["\u003cstring\u003e","\u003cstring\u003e"],"digitalWalletWebhook":["\u003cstring\u003e","\u003cstring\u003e"]},"disabled":"\u003cboolean\u003e","secretKey":"\u003cstring\u003e","skipSslVerification":"\u003cboolean\u003e","timestamp":"\u003cstring\u003e","id":"\u003cstring\u003e","orgId":"\u003cstring\u003e"}}