---
title: "Webhook Handler"
method: POST
path: "SEARCH_VIEW_UPDATED_BATCH"
---

# Webhook Handler

`POST SEARCH_VIEW_UPDATED_BATCH` (webhook)

## Acknowledgement `200`

Successful Response

- SearchViewUpdatedBatchEvent
  - `type` 'SEARCH_VIEW_UPDATED_BATCH'
  - `payload` union[], required
    - union
      - MemoSearchViewRead
        - `entity_type` 'memo': Searchable entity the SearchView is for
        - `project_id` integer, required: Project the SearchView belongs to
        - `name` string, required: Name of the SearchView
        - `layout` 'table' | 'list' | 'board' | 'gallery' | 'feed', required
        - `filters` FilterMemoColumnsOutput, required
          - `id` string, required: Unique id of this node within the filter tree
          - `items` union[], required: Child expressions and/or nested filter nodes
            - union
              - …
          - `logic_operator` 'or' | 'and', required: This tells our filter how to combine multiple column expressions.
        - `group_by` GroupConfigMemoColumns
          - `field` 'M_TITLE' | 'M_CONTENT' | 'M_USER_ID' | 'M_ATTACHED_OBJECT_TYPE' | 'M_ATTACHED_OBJECT_ID' | 'M_CREATED' | 'M_UPDATED' | 'M_FAVORITE', required
          - `date_granularity` 'day' | 'week' | 'month' | 'year': Bucket size used when grouping a date column.
        - `sorts` SortMemoColumns[]: Sort order of the SearchView
          - `column` union, required: The column to sort by: an enum member, or an int id referring to a project-metadata column
            - 'M_TITLE' | 'M_CONTENT' | 'M_USER_ID' | 'M_ATTACHED_OBJECT_TYPE' | 'M_ATTACHED_OBJECT_ID' | 'M_CREATED' | 'M_UPDATED' | 'M_FAVORITE'
            - integer
          - `direction` 'asc' | 'desc', required: Sort direction. `apply` appends `.nulls_last()` so rows missing a value sink to the bottom regardless of direction.
        - `selected_properties` MemoColumns[], nullable: Entity properties to render (None = the frontend's default selection)
        - `id` integer, required: ID of the SearchView
        - `user_id` integer, required: User the SearchView belongs to
        - `position` integer, required: Position of the SearchView in the user's list
        - `created` string, date-time, required: Created timestamp of the SearchView
        - `updated` string, date-time, required: Updated timestamp of the SearchView
      - SpanSearchViewRead
        - `entity_type` 'span_annotation': Searchable entity the SearchView is for
        - `project_id` integer, required: Project the SearchView belongs to
        - `name` string, required: Name of the SearchView
        - `layout` 'table' | 'list' | 'board' | 'gallery' | 'feed', required
        - `filters` FilterSpanColumnsOutput, required
          - `id` string, required: Unique id of this node within the filter tree
          - `items` union[], required: Child expressions and/or nested filter nodes
            - union
              - …
          - `logic_operator` 'or' | 'and', required: This tells our filter how to combine multiple column expressions.
        - `group_by` GroupConfigSpanColumns
          - `field` 'SP_SPAN_TEXT' | 'SP_CODE_ID_LIST_RECURSIVE' | 'SP_USER_ID' | 'SP_MEMO_CONTENT' | 'SP_SOURCE_SOURCE_DOCUMENT_NAME' | 'SP_TAG_ID_LIST_RECURSIVE' | 'SP_FOLDER_ID_LIST_RECURSIVE', required
          - `date_granularity` 'day' | 'week' | 'month' | 'year': Bucket size used when grouping a date column.
        - `sorts` SortSpanColumns[]: Sort order of the SearchView
          - `column` union, required: The column to sort by: an enum member, or an int id referring to a project-metadata column
            - 'SP_SPAN_TEXT' | 'SP_CODE_ID_LIST_RECURSIVE' | 'SP_USER_ID' | 'SP_MEMO_CONTENT' | 'SP_SOURCE_SOURCE_DOCUMENT_NAME' | 'SP_TAG_ID_LIST_RECURSIVE' | 'SP_FOLDER_ID_LIST_RECURSIVE'
            - integer
          - `direction` 'asc' | 'desc', required: Sort direction. `apply` appends `.nulls_last()` so rows missing a value sink to the bottom regardless of direction.
        - `selected_properties` SpanColumns[], nullable: Entity properties to render (None = the frontend's default selection)
        - `id` integer, required: ID of the SearchView
        - `user_id` integer, required: User the SearchView belongs to
        - `position` integer, required: Position of the SearchView in the user's list
        - `created` string, date-time, required: Created timestamp of the SearchView
        - `updated` string, date-time, required: Updated timestamp of the SearchView
      - SentenceSearchViewRead
        - `entity_type` 'sentence_annotation': Searchable entity the SearchView is for
        - `project_id` integer, required: Project the SearchView belongs to
        - `name` string, required: Name of the SearchView
        - `layout` 'table' | 'list' | 'board' | 'gallery' | 'feed', required
        - `filters` FilterSentAnnoColumnsOutput, required
          - `id` string, required: Unique id of this node within the filter tree
          - `items` union[], required: Child expressions and/or nested filter nodes
            - union
              - …
          - `logic_operator` 'or' | 'and', required: This tells our filter how to combine multiple column expressions.
        - `group_by` GroupConfigSentAnnoColumns
          - `field` 'SentAnno_CODE_ID_LIST_RECURSIVE' | 'SentAnno_USER_ID' | 'SentAnno_MEMO_CONTENT' | 'SentAnno_SOURCE_SOURCE_DOCUMENT_NAME' | 'SentAnno_TAG_ID_LIST_RECURSIVE' | 'SentAnno_FOLDER_ID_LIST_RECURSIVE', required
          - `date_granularity` 'day' | 'week' | 'month' | 'year': Bucket size used when grouping a date column.
        - `sorts` SortSentAnnoColumns[]: Sort order of the SearchView
          - `column` union, required: The column to sort by: an enum member, or an int id referring to a project-metadata column
            - 'SentAnno_CODE_ID_LIST_RECURSIVE' | 'SentAnno_USER_ID' | 'SentAnno_MEMO_CONTENT' | 'SentAnno_SOURCE_SOURCE_DOCUMENT_NAME' | 'SentAnno_TAG_ID_LIST_RECURSIVE' | 'SentAnno_FOLDER_ID_LIST_RECURSIVE'
            - integer
          - `direction` 'asc' | 'desc', required: Sort direction. `apply` appends `.nulls_last()` so rows missing a value sink to the bottom regardless of direction.
        - `selected_properties` SentAnnoColumns[], nullable: Entity properties to render (None = the frontend's default selection)
        - `id` integer, required: ID of the SearchView
        - `user_id` integer, required: User the SearchView belongs to
        - `position` integer, required: Position of the SearchView in the user's list
        - `created` string, date-time, required: Created timestamp of the SearchView
        - `updated` string, date-time, required: Updated timestamp of the SearchView
      - BBoxSearchViewRead
        - `entity_type` 'bbox_annotation': Searchable entity the SearchView is for
        - `project_id` integer, required: Project the SearchView belongs to
        - `name` string, required: Name of the SearchView
        - `layout` 'table' | 'list' | 'board' | 'gallery' | 'feed', required
        - `filters` FilterBBoxColumnsOutput, required
          - `id` string, required: Unique id of this node within the filter tree
          - `items` union[], required: Child expressions and/or nested filter nodes
            - union
              - …
          - `logic_operator` 'or' | 'and', required: This tells our filter how to combine multiple column expressions.
        - `group_by` GroupConfigBBoxColumns
          - `field` 'BB_CODE_ID_LIST_RECURSIVE' | 'BB_USER_ID' | 'BB_MEMO_CONTENT' | 'BB_SOURCE_SOURCE_DOCUMENT_NAME' | 'BB_TAG_ID_LIST_RECURSIVE' | 'BB_FOLDER_ID_LIST_RECURSIVE', required
          - `date_granularity` 'day' | 'week' | 'month' | 'year': Bucket size used when grouping a date column.
        - `sorts` SortBBoxColumns[]: Sort order of the SearchView
          - `column` union, required: The column to sort by: an enum member, or an int id referring to a project-metadata column
            - 'BB_CODE_ID_LIST_RECURSIVE' | 'BB_USER_ID' | 'BB_MEMO_CONTENT' | 'BB_SOURCE_SOURCE_DOCUMENT_NAME' | 'BB_TAG_ID_LIST_RECURSIVE' | 'BB_FOLDER_ID_LIST_RECURSIVE'
            - integer
          - `direction` 'asc' | 'desc', required: Sort direction. `apply` appends `.nulls_last()` so rows missing a value sink to the bottom regardless of direction.
        - `selected_properties` BBoxColumns[], nullable: Entity properties to render (None = the frontend's default selection)
        - `id` integer, required: ID of the SearchView
        - `user_id` integer, required: User the SearchView belongs to
        - `position` integer, required: Position of the SearchView in the user's list
        - `created` string, date-time, required: Created timestamp of the SearchView
        - `updated` string, date-time, required: Updated timestamp of the SearchView

---

[API](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api.md) - [All operations](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/llms.txt) - [OpenAPI document](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/revisions/e498207e29f4?raw)
