# documents.suggestions.create

Suggest changes to an agreement template for a person to review instead of making them: the same operations as documents.content.edit, with a one-line summary of what they do and why, and an idempotencyKey. Nothing changes until a person accepts it in the agreement writer; they can reject it instead. The operations must apply to the template as it is now. Use this when the person asks for suggestions or reviews changes first.

`POST /api/v1/accounting/documents.suggestions.create`

Permissions: `accounting:read`, `accounting:write` · Roles: admin, finance · Idempotency key required

MCP tool: `accounting_documents_suggestions_create`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `documentType` | "agreement_template" | Yes |  |
| `documentId` | string (ID) | Yes | The ID of the related record. |
| `summary` | string | Yes | 1–500 characters. |
| `operations` | array of objects | Yes | 1–50 items. |
| `idempotencyKey` | string | Yes | Any unique text you generate once per intended change, so a retried request only happens once. Send it as the Idempotency-Key header instead if you prefer; if you send both they must match. 8–200 characters. |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/accounting/documents.suggestions.create \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "documentType": "agreement_template",
  "documentId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
  "summary": "Synthetic example from the docs",
  "operations": [
    {
      "type": "replace_text",
      "find": "example",
      "replace": "example"
    }
  ]
}'
```

Reference page: https://app.getoatmilk.com/docs/api/documents.suggestions.create
