---
title: "Save Pattern"
method: PUT
path: "/v1/matters/{matter_id}/voidables/patterns/{pattern_id}"
tags: ["voidables"]
---

# Save Pattern

`PUT /v1/matters/{matter_id}/voidables/patterns/{pattern_id}`

## Request

- Base URL: `https://api.ender.au` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ender.au/v1/matters/{matter_id}/voidables/patterns/{pattern_id}`
- Auth: HTTP bearer

## Path parameters

- `pattern_id` string, uuid, required
- `matter_id` string, uuid, required

## Request body

- SavePattern
  - `run_id` string, uuid, required
  - `version` integer, nullable
  - `title` string, required
  - `description` string
  - `selection` union
    - BulkTransactionReviewIdsSelection
      - `kind` 'ids', required
      - `items` BulkTransactionReviewItem[], required
        - `transaction_id` string, uuid, required
        - `version` integer, nullable
    - BulkTransactionReviewQuerySelection: Every run transaction matching the grid predicates, less exclusions.
      - `kind` 'query', required
      - `revision` string, required
      - `filters` TransactionGridFilters
        - `statuses` string[]
        - `pathways` string[]
        - `accounts` string[]
        - `pattern_ids` string[]
        - `dates` string[]
        - `manual` boolean, nullable
        - `in_scope_only` boolean
      - `search` string, nullable
      - `excluded_ids` string[]
      - `expected_count` integer, required

## Response `200`

Successful Response

- SavedPattern
  - `id` string, uuid, required
  - `title` string, required
  - `description` string, required
  - `member_ids` string[], required
  - `version` integer, required
  - `archived` boolean, required
  - `updated_at` string, date-time, required
  - `origin` object, nullable, required
  - `can_edit` boolean, required
  - `count` integer, required
  - `available_count` integer, required
  - `gross_aud` string, decimal, required
  - `included_count` integer, required
  - `investigating_count` integer, required
  - `excluded_count` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ender/apis/ender-backend.md) - [All operations](https://skmtc.dev/ender/apis/ender-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/ender/apis/ender-backend/revisions/bf4373130521?raw)
