name: webhooks
icon: sales_cadence
label: Webhook
hidden: true
enable_dataloader: false
version: 2
fields:
  name:
    label: Name
    type: text
    defaultValue: ''
    description: ''
    inlineHelpText: ''
    required: true
    searchable: true
    is_wide: true
    is_name: true
    name: name
    filterable: true
  flow:
    label: Workflow
    type: lookup
    reference_to: flows
    create: false
    name: flow
    filterable: true
    searchable: true
    is_wide: true
    inlineHelpText: 'If no workflow is selected, the scope of webhook will be all the workflows of this company.'
  payload_url:
    label: Payload URL
    type: text
    required: true
    is_wide: true
    name: payload_url
    filterable: true
  content_type:
    label: Format of Request
    type: text
    defaultValue: '"application/json"'
    hidden: true
    name: content_type
  active:
    label: Active
    type: boolean
    defaultValue: false
    name: active
    filterable: true
  description:
    type: text
    label: Description
    name: description
    is_wide: true
list_views:
  all:
    label: All Webhooks
    filter_scope: space
    columns:
      - name
      - flow
      - payload_url
      - active
      - description
permission_set:
  user:
    allowCreate: false
    allowDelete: false
    allowEdit: false
    allowRead: true
    modifyAllRecords: false
    viewAllRecords: true
  admin:
    allowCreate: true
    allowDelete: true
    allowEdit: true
    allowRead: true
    modifyAllRecords: true
    viewAllRecords: true
