---
title: "Resubmit Rule"
method: POST
path: "/datamates/{datamate_id}/rules/{public_id}/resubmit"
tags: ["WORKSPACE_RULES"]
---

# Resubmit Rule

`POST /datamates/{datamate_id}/rules/{public_id}/resubmit`

## 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/{public_id}/resubmit`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Its proposer sends a new wording of a proposal sent back for changes:
a new proposal waiting for review, which replaces the one sent back.

## Path parameters

- `datamate_id` integer, required
- `public_id` string, required

## Request body

- ResubmitRuleRequest: The proposer sends a new wording of a proposal that was sent back for changes. ``expected_version`` is the sent-back row's.
  - `expected_version` integer, required
  - `text` string, required
  - `applies_to` string[], nullable
  - `source` 'web' | 'cli'

## Response `200`

Successful Response

- ProposalResult: ``status`` is the row's status, or ``invalid`` / ``exists`` / ``stale``. ``exists`` names the active rule that already says this. ``invalid`` carries ``error_code``: ``invalid_item``, ``target_not_found`` or ``too_many_pending``.
  - `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-19** `baff74c5160d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/myaltimate/apis/myaltimate-api/changes/datamates/:datamate_id/rules/:public_id/resubmit/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/1de431c8d59b?raw)
