######################################################################## # Webhooks ######################################################################## name: webhook meta: openapi: disabled: true label: { de: "Webhooks", en: "webhooks" } muiIcon: http rowIdentTpl: { twig: "{{ insertTime }} - {{ type }}" } views: - type: simpleList mediaQuery: "(max-width: 600px)" primaryText: type secondaryText: scope - type: table columns: - type - scope - active permissions: public: methods: get: false post: true put: false delete: false user: methods: get: true post: true put: false delete: false "token:${BIGCOMMERCE_WEBHOOK_TOKEN}": methods: get: true post: true put: false delete: false hooks: post: create: type: javascript file: hooks/webhook/post_create.js put: update: type: javascript file: hooks/webhook/put_update.js delete: delete: type: javascript file: hooks/webhook/delete_delete.js fields: - name: type type: string meta: label: { de: "Typ", en: "Type" } widget: select choices: - id: "bigCommerce" name: "BigCommerce" - id: "printful" name: "Printful" - name: scope type: string meta: label: { de: "Scope", en: "Scope" } helperText: de: "The scope of the webhook, for example: store/product/*" en: "The scope of the webhook, for example: store/product/*" - name: active type: boolean meta: label: { de: "Aktiv", en: "Active" } helperText: de: "Aktiviert oder deaktiviert den Webhook" en: "Enables or disables the webhook" - name: webhookId type: number meta: label: { de: "Webhook ID", en: "Webhook ID" } helperText: de: "Die ID des Webhooks" en: "The ID of the webhook" inputProperties: disabled: true