> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tracecat.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Case View

> Change a view you own, or a shared view if you have case:update.



## OpenAPI

````yaml https://platform.tracecat.com/api/openapi.json patch /workspaces/{workspace_id}/case-views/{view_id}
openapi: 3.1.0
info:
  title: Tracecat API
  summary: Tracecat API
  description: The open source AI automation platform for security teams and agents.
  termsOfService: >-
    https://docs.google.com/document/d/e/2PACX-1vQvDe3SoVAPoQc51MgfGCP71IqFYX_rMVEde8zC4qmBCec5f8PLKQRdxa6tsUABT8gWAR9J-EVs2CrQ/pub
  contact:
    name: Tracecat Founders
    email: founders@tracecat.com
  license:
    name: AGPL-3.0
    url: https://www.gnu.org/licenses/agpl-3.0.html
  version: '1'
servers:
  - url: /api
security: []
tags:
  - name: public
    description: Public facing endpoints
  - name: workflows
    description: Workflow management
  - name: actions
    description: Action management
  - name: triggers
    description: Workflow triggers
  - name: secrets
    description: Secret management
  - name: variables
    description: Workspace variable management
paths:
  /workspaces/{workspace_id}/case-views/{view_id}:
    patch:
      tags:
        - case-views
      summary: Update Case View
      description: Change a view you own, or a shared view if you have case:update.
      operationId: case-views-update_case_view
      parameters:
        - name: view_id
          in: path
          required: true
          schema:
            type: string
            title: View Id
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Workspace Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CaseViewUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CaseViewRead'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyCookie: []
        - ServiceAccountApiKeyBearer: []
components:
  schemas:
    CaseViewUpdate:
      properties:
        name:
          anyOf:
            - $ref: '#/components/schemas/CaseViewName'
            - type: 'null'
        visibility:
          anyOf:
            - $ref: '#/components/schemas/CaseViewVisibility'
            - type: 'null'
        query:
          anyOf:
            - $ref: '#/components/schemas/StoredCaseQuery'
            - type: 'null'
        order_by:
          anyOf:
            - $ref: '#/components/schemas/CaseSearchOrder'
            - type: 'null'
        sort:
          anyOf:
            - $ref: '#/components/schemas/CaseViewSort'
            - type: 'null'
        columns:
          anyOf:
            - $ref: '#/components/schemas/CaseViewColumns'
            - type: 'null'
      additionalProperties: false
      type: object
      title: CaseViewUpdate
      description: |-
        Change a saved view. Omitted fields stay as they are.

        ``order_by``, ``sort``, and ``columns`` accept ``null`` to clear them.
    CaseViewRead:
      properties:
        id:
          type: string
          title: Id
          description: A UUID for saved views, or a built-in view ID.
        kind:
          $ref: '#/components/schemas/CaseViewKind'
        name:
          type: string
          title: Name
        visibility:
          $ref: '#/components/schemas/CaseViewVisibility'
        owner_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Owner Id
        query:
          $ref: '#/components/schemas/CaseCriteria-Output'
          description: >-
            The view's criteria. Reading one view removes deleted tags and
            options; see CaseViewDetail.
        order_by:
          anyOf:
            - $ref: '#/components/schemas/CaseSearchOrder'
            - type: 'null'
        sort:
          anyOf:
            - $ref: '#/components/schemas/CaseViewSort'
            - type: 'null'
        columns:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Columns
        can_edit:
          type: boolean
          title: Can Edit
          description: Whether the requesting user may rename, change, or delete it.
        pinned:
          type: boolean
          title: Pinned
          default: false
        pin_position:
          anyOf:
            - type: integer
            - type: 'null'
          title: Pin Position
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated At
      type: object
      required:
        - id
        - kind
        - name
        - visibility
        - query
        - can_edit
      title: CaseViewRead
      description: A saved or built-in case view, as seen by the requesting user.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CaseViewName:
      type: string
      maxLength: 255
      minLength: 1
    CaseViewVisibility:
      type: string
      enum:
        - personal
        - workspace
      title: CaseViewVisibility
      description: Who can see a saved case view.
    StoredCaseQuery:
      $ref: '#/components/schemas/CaseCriteria-Input'
    CaseSearchOrder:
      type: string
      enum:
        - relevance
        - created_at
        - updated_at
        - priority
        - severity
        - status
        - tasks
        - id
        - short_id
        - assignee
        - tags
    CaseViewSort:
      type: string
      enum:
        - asc
        - desc
    CaseViewColumns:
      items:
        type: string
      type: array
      maxItems: 100
    CaseViewKind:
      type: string
      enum:
        - builtin
        - custom
    CaseCriteria-Output:
      properties:
        filters:
          anyOf:
            - $ref: '#/components/schemas/Filter-Output'
            - type: 'null'
          description: >-
            AND/OR/NOT conditions. Payload scalar equality uses
            field="payload.metadata.product.vendor_name", op="eq",
            value="Microsoft". Dot-separated literal keys or numeric array
            indices; keys containing dots are unsupported. Equality preserves
            JSON types. Payload is_null matches a missing path; explicit JSON
            null is a present value. Exclusions omit missing paths unless ORed
            with is_null.
        search_term:
          anyOf:
            - type: string
              maxLength: 1000
            - type: 'null'
          title: Search Term
        search_mode:
          anyOf:
            - $ref: '#/components/schemas/SearchMode'
            - type: 'null'
          description: >-
            Explicit word/phrase or escaped substring search. Omitted mode
            retains legacy matching and ordering.
        search_columns:
          anyOf:
            - items:
                type: string
                enum:
                  - summary
                  - description
              type: array
              maxItems: 2
              minItems: 1
            - type: 'null'
          title: Search Columns
        short_id:
          anyOf:
            - type: string
              maxLength: 1000
            - type: 'null'
          title: Short Id
        case_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Case Id
        hierarchy:
          type: string
          enum:
            - all
            - top_level
          title: Hierarchy
          default: all
        parent_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Parent Id
        status:
          anyOf:
            - items:
                $ref: '#/components/schemas/CaseStatus'
              type: array
            - type: 'null'
          title: Status
        priority:
          anyOf:
            - items:
                $ref: '#/components/schemas/CasePriority'
              type: array
            - type: 'null'
          title: Priority
        severity:
          anyOf:
            - items:
                $ref: '#/components/schemas/CaseSeverity'
              type: array
            - type: 'null'
          title: Severity
        assignee_id:
          anyOf:
            - items:
                anyOf:
                  - type: string
                    format: uuid
                  - type: string
                    enum:
                      - unassigned
                      - __UNASSIGNED__
                      - me
              type: array
            - type: 'null'
          title: Assignee Id
          description: User IDs, "unassigned", or "me" for the requesting user.
        created_by:
          anyOf:
            - items:
                anyOf:
                  - type: string
                    format: uuid
                  - type: string
                    const: me
              type: array
              maxItems: 1000
            - type: 'null'
          title: Created By
          description: >-
            Users who created the case, or "me" for the requesting user. A case
            a workflow or agent created on a user's behalf counts as that
            user's. Scheduled, webhook, and other runs with no user record no
            creator, so their cases never match.
        tags:
          anyOf:
            - items:
                type: string
              type: array
              maxItems: 1000
            - type: 'null'
          title: Tags
        dropdown:
          anyOf:
            - items:
                type: string
              type: array
              maxItems: 50
            - type: 'null'
          title: Dropdown
        start_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Start Time
        end_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: End Time
        created_within:
          anyOf:
            - $ref: '#/components/schemas/RelativeTimeWindow'
            - type: 'null'
          description: Created within this window, ending at the time the query runs.
        updated_after:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated After
        updated_before:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated Before
        updated_within:
          anyOf:
            - $ref: '#/components/schemas/RelativeTimeWindow'
            - type: 'null'
          description: Updated within this window, ending at the time the query runs.
      additionalProperties: false
      type: object
      title: CaseCriteria
      description: >-
        Matching criteria shared by case search, status counts, and saved views.


        Explicit text, identity, and hierarchy constraints are combined with

        ``filters`` using AND. Workspace and entitlement checks belong to the

        service and cannot be supplied or negated by this request.


        Tag membership uses existing filter nodes: ``in`` matches any tag, an

        ``and`` of ``contains`` conditions requires all tags, and ``not`` around

        ``in`` excludes the selected tags. ``is_null`` matches no tags.


        Scalar dropdown/custom-field exclusions retain SQL NULL semantics:

        ``ne``, ``not_in``, and negated comparisons exclude unset values.
        Include

        unset values explicitly with an ``or`` containing ``is_null``.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    CaseCriteria-Input:
      properties:
        filters:
          anyOf:
            - $ref: '#/components/schemas/Filter-Input'
            - type: 'null'
          description: >-
            AND/OR/NOT conditions. Payload scalar equality uses
            field="payload.metadata.product.vendor_name", op="eq",
            value="Microsoft". Dot-separated literal keys or numeric array
            indices; keys containing dots are unsupported. Equality preserves
            JSON types. Payload is_null matches a missing path; explicit JSON
            null is a present value. Exclusions omit missing paths unless ORed
            with is_null.
        search_term:
          anyOf:
            - type: string
              maxLength: 1000
            - type: 'null'
          title: Search Term
        search_mode:
          anyOf:
            - $ref: '#/components/schemas/SearchMode'
            - type: 'null'
          description: >-
            Explicit word/phrase or escaped substring search. Omitted mode
            retains legacy matching and ordering.
        search_columns:
          anyOf:
            - items:
                type: string
                enum:
                  - summary
                  - description
              type: array
              maxItems: 2
              minItems: 1
            - type: 'null'
          title: Search Columns
        short_id:
          anyOf:
            - type: string
              maxLength: 1000
            - type: 'null'
          title: Short Id
        case_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Case Id
        hierarchy:
          type: string
          enum:
            - all
            - top_level
          title: Hierarchy
          default: all
        parent_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Parent Id
        status:
          anyOf:
            - items:
                $ref: '#/components/schemas/CaseStatus'
              type: array
            - type: 'null'
          title: Status
        priority:
          anyOf:
            - items:
                $ref: '#/components/schemas/CasePriority'
              type: array
            - type: 'null'
          title: Priority
        severity:
          anyOf:
            - items:
                $ref: '#/components/schemas/CaseSeverity'
              type: array
            - type: 'null'
          title: Severity
        assignee_id:
          anyOf:
            - items:
                anyOf:
                  - type: string
                    format: uuid
                  - type: string
                    enum:
                      - unassigned
                      - __UNASSIGNED__
                      - me
              type: array
            - type: 'null'
          title: Assignee Id
          description: User IDs, "unassigned", or "me" for the requesting user.
        created_by:
          anyOf:
            - items:
                anyOf:
                  - type: string
                    format: uuid
                  - type: string
                    const: me
              type: array
              maxItems: 1000
            - type: 'null'
          title: Created By
          description: >-
            Users who created the case, or "me" for the requesting user. A case
            a workflow or agent created on a user's behalf counts as that
            user's. Scheduled, webhook, and other runs with no user record no
            creator, so their cases never match.
        tags:
          anyOf:
            - items:
                type: string
              type: array
              maxItems: 1000
            - type: 'null'
          title: Tags
        dropdown:
          anyOf:
            - items:
                type: string
              type: array
              maxItems: 50
            - type: 'null'
          title: Dropdown
        start_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Start Time
        end_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: End Time
        created_within:
          anyOf:
            - $ref: '#/components/schemas/RelativeTimeWindow'
            - type: 'null'
          description: Created within this window, ending at the time the query runs.
        updated_after:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated After
        updated_before:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated Before
        updated_within:
          anyOf:
            - $ref: '#/components/schemas/RelativeTimeWindow'
            - type: 'null'
          description: Updated within this window, ending at the time the query runs.
      additionalProperties: false
      type: object
      title: CaseCriteria
      description: >-
        Matching criteria shared by case search, status counts, and saved views.


        Explicit text, identity, and hierarchy constraints are combined with

        ``filters`` using AND. Workspace and entitlement checks belong to the

        service and cannot be supplied or negated by this request.


        Tag membership uses existing filter nodes: ``in`` matches any tag, an

        ``and`` of ``contains`` conditions requires all tags, and ``not`` around

        ``in`` excludes the selected tags. ``is_null`` matches no tags.


        Scalar dropdown/custom-field exclusions retain SQL NULL semantics:

        ``ne``, ``not_in``, and negated comparisons exclude unset values.
        Include

        unset values explicitly with an ``or`` containing ``is_null``.
    Filter-Output:
      oneOf:
        - $ref: '#/components/schemas/Condition-Output'
        - $ref: '#/components/schemas/AndClause-Output'
        - $ref: '#/components/schemas/OrClause-Output'
        - $ref: '#/components/schemas/NotClause-Output'
    SearchMode:
      type: string
      enum:
        - full_text
        - literal
      title: SearchMode
      description: Explicit lexical modes; omitted table mode remains a legacy policy.
    CaseStatus:
      type: string
      enum:
        - unknown
        - new
        - in_progress
        - on_hold
        - resolved
        - closed
        - other
      title: CaseStatus
      description: Case status values aligned with OCSF Incident Finding status.
    CasePriority:
      type: string
      enum:
        - unknown
        - low
        - medium
        - high
        - critical
        - other
      title: CasePriority
      description: |-
        Case priority values aligned with urgency levels.

        Values:
            UNKNOWN (0): No priority is assigned
            LOW (1): Application or personal procedure is unusable, where a workaround is available or a repair is possible
            MEDIUM (2): Non-critical function or procedure is unusable or hard to use causing operational disruptions with no direct impact on a service's availability. A workaround is available
            HIGH (3): Critical functionality or network access is interrupted, degraded or unusable, having a severe impact on services availability. No acceptable alternative is possible
            CRITICAL (4): Interruption making a critical functionality inaccessible or a complete network interruption causing a severe impact on services availability. There is no possible alternative
            OTHER (99): The priority is not normalized
    CaseSeverity:
      type: string
      enum:
        - unknown
        - informational
        - low
        - medium
        - high
        - critical
        - fatal
        - other
      title: CaseSeverity
      description: |-
        Case severity values aligned with OCSF severity values.

        Values:
            UNKNOWN (0): The event/finding severity is unknown
            INFORMATIONAL (1): Informational message. No action required
            LOW (2): The user decides if action is needed
            MEDIUM (3): Action is required but the situation is not serious at this time
            HIGH (4): Action is required immediately
            CRITICAL (5): Action is required immediately and the scope is broad
            FATAL (6): An error occurred but it is too late to take remedial action
            OTHER (99): The event/finding severity is not mapped
    RelativeTimeWindow:
      properties:
        amount:
          type: integer
          maximum: 1000
          minimum: 1
          title: Amount
        unit:
          $ref: '#/components/schemas/RelativeTimeUnit'
      additionalProperties: false
      type: object
      required:
        - amount
        - unit
      title: RelativeTimeWindow
      description: |-
        A time range that ends now, such as "the last 30 days".

        The database resolves the start each time a query runs, so a saved view
        keeps meaning "the last 30 days" instead of a fixed date. Months use
        calendar arithmetic: one month before 31 March is 28 or 29 February.
    Filter-Input:
      oneOf:
        - $ref: '#/components/schemas/Condition-Input'
        - $ref: '#/components/schemas/AndClause-Input'
        - $ref: '#/components/schemas/OrClause-Input'
        - $ref: '#/components/schemas/NotClause-Input'
    Condition-Output:
      properties:
        field:
          type: string
          minLength: 1
          title: Field
        op:
          $ref: '#/components/schemas/FilterOp'
        value:
          anyOf:
            - $ref: '#/components/schemas/FilterValue'
            - type: 'null'
      additionalProperties: false
      type: object
      required:
        - field
        - op
      title: Condition
      description: A predicate over one resolver-defined field.
    AndClause-Output:
      properties:
        and:
          items:
            $ref: '#/components/schemas/Filter-Output'
          type: array
          minItems: 1
          title: And
      additionalProperties: false
      type: object
      required:
        - and
      title: AndClause
      description: A conjunction of one or more filters.
    OrClause-Output:
      properties:
        or:
          items:
            $ref: '#/components/schemas/Filter-Output'
          type: array
          minItems: 1
          title: Or
      additionalProperties: false
      type: object
      required:
        - or
      title: OrClause
      description: A disjunction of one or more filters.
    NotClause-Output:
      properties:
        not:
          $ref: '#/components/schemas/Filter-Output'
      additionalProperties: false
      type: object
      required:
        - not
      title: NotClause
      description: The negation of one filter.
    RelativeTimeUnit:
      type: string
      enum:
        - hour
        - day
        - week
        - month
      title: RelativeTimeUnit
      description: Calendar units a relative time window can count back in.
    Condition-Input:
      properties:
        field:
          type: string
          minLength: 1
          title: Field
        op:
          $ref: '#/components/schemas/FilterOp'
        value:
          anyOf:
            - $ref: '#/components/schemas/FilterValue'
            - type: 'null'
      additionalProperties: false
      type: object
      required:
        - field
        - op
      title: Condition
      description: A predicate over one resolver-defined field.
    AndClause-Input:
      properties:
        and:
          items:
            $ref: '#/components/schemas/Filter-Input'
          type: array
          minItems: 1
          title: And
      additionalProperties: false
      type: object
      required:
        - and
      title: AndClause
      description: A conjunction of one or more filters.
    OrClause-Input:
      properties:
        or:
          items:
            $ref: '#/components/schemas/Filter-Input'
          type: array
          minItems: 1
          title: Or
      additionalProperties: false
      type: object
      required:
        - or
      title: OrClause
      description: A disjunction of one or more filters.
    NotClause-Input:
      properties:
        not:
          $ref: '#/components/schemas/Filter-Input'
      additionalProperties: false
      type: object
      required:
        - not
      title: NotClause
      description: The negation of one filter.
    FilterOp:
      type: string
      enum:
        - eq
        - ne
        - in
        - not_in
        - gt
        - gte
        - lt
        - lte
        - contains
        - starts_with
        - is_null
      title: FilterOp
      description: Operations supported by the shared filter language.
    FilterValue:
      anyOf:
        - $ref: '#/components/schemas/FilterScalar'
        - items:
            $ref: '#/components/schemas/FilterScalar'
          type: array
    FilterScalar:
      anyOf:
        - type: string
        - type: integer
        - type: number
        - type: boolean
        - type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
        - type: string
          format: date-time
        - type: string
          format: date
        - type: string
          format: uuid
  securitySchemes:
    APIKeyCookie:
      type: apiKey
      in: cookie
      name: fastapiusersauth
    ServiceAccountApiKeyBearer:
      type: http
      description: Tracecat service account API key.
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.