---
title: "Update Rule Settings"
method: PATCH
path: "/datamates/{datamate_id}/rules/settings"
tags: ["WORKSPACE_RULES"]
---

# Update Rule Settings

`PATCH /datamates/{datamate_id}/rules/settings`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/datamates/{datamate_id}/rules/settings`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
- TypeScript: <https://skmtc.dev/myaltimate/apis/myaltimate-api/docs/datamates/:datamate_id/rules/settings/patch.ts> (a function with typed inputs; its response is checked against the schema)

Owner: Learn from sessions (advisory: clients decide whether to learn),
Include correction quotes, and Apply approved rules across repositories.
Omitted fields are unchanged.

## Path parameters

- `datamate_id` integer, required

## Request body

- UpdateRuleSettingsRequest
  - `learning_enabled` boolean, nullable
  - `include_quotes` boolean, nullable
  - `share_across_repos` boolean, nullable

## Response `200`

Successful Response

- RulesSummary: The tab badge and header meta, and the settings for the page.
  - `is_owner` boolean, required
  - `owner_name` string, nullable
  - `settings` RuleSettings, required
    - `learning_enabled` boolean, required
    - `include_quotes` boolean, required
    - `share_across_repos` boolean, required
  - `revision` integer, required
  - `pending_count` integer, required
  - `active_count` integer, required
  - `history_count` integer, required

## Other responses

- `403`: Not the workspace's owner
- `404`: Workspace or rule not found
- `409`: Changed since read, or refused
- `422`: Validation Error

## Changes

- **2026-11-03** `868dfab8c7fe`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/myaltimate/apis/myaltimate-api/changes/datamates/:datamate_id/rules/settings/patch.md)

---

[API](https://skmtc.dev/myaltimate/apis/myaltimate-api.md) - [All operations](https://skmtc.dev/myaltimate/apis/myaltimate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/myaltimate/apis/myaltimate-api/revisions/01c038028180?raw)
