---
title: "Propose Rules"
method: POST
path: "/datamates/{datamate_id}/rules/proposals"
tags: ["WORKSPACE_RULES"]
---

# Propose Rules

`POST /datamates/{datamate_id}/rules/proposals`

## 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/proposals`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
- TypeScript: <https://skmtc.dev/myaltimate/apis/myaltimate-api/docs/datamates/:datamate_id/rules/proposals/post.ts> (a function with typed inputs; its response is checked against the schema)

Send proposals for the owner's review. Each item gets its own result;
one failing item never aborts the rest.

## Path parameters

- `datamate_id` integer, required

## Request body

- ProposeRulesRequest
  - `repo_remote` string, required
  - `items` ProposalItem[], required
    - `change` string
    - `text` string, required
    - `applies_to` string[]
    - `tags` string[]
    - `why` string, nullable
    - `origin` string
    - `replaces` string, nullable
    - `replaces_version` integer, nullable
    - `evidence_sessions` integer
    - `corrections` CorrectionIn[]
      - `excerpt` string, required
      - `corrected_at` string, date-time, required
      - `session_ref` string, nullable

## Response `200`

Successful Response

- ProposeRulesResponse
  - `results` ProposalResult[], required
    - `index` integer, required
    - `status` string, required
    - `public_id` string, nullable
    - `rule_key` string, nullable
    - `version` integer, nullable
    - `duplicate` boolean
    - `weakens_verification` boolean
    - `verification_reason` string, nullable
    - `error_code` string, nullable
    - `error_detail` string, nullable

## 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/proposals/post.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)
