Administration

proposals.create

Suggest a change to a record for someone to review. Nothing changes until the suggestion is approved. A newer suggestion for the same record and field replaces the older one. Supply subjectType, subjectId, field, proposedValue, reasoning, optional evidence, and idempotencyKey.

POST/api/v1/accounting/proposals.create

Permissions

accounting:readaccounting:write

Who can call it

admin, finance

Retries

Idempotency key required

MCP

accounting_proposals_create

Fields

  • subjectTypeenumRequired

    The kind of record this is about, such as entry, invoice or mail.

    invoiceentrymailpartynotion_linkcontractormerchant
  • subjectIdstringRequired

    The ID of the record this is about.

    1–200 characters

  • fieldenumRequired
    statuscategoryclassificationpaymentmappingdetails
  • proposedValuemapRequired
  • currentValuemap
  • reasoningstringRequired

    3–2000 characters

  • evidencearray of objects

    at most 20 items

  • confidenceenum
    lowmediumhigh

    Default "medium"

  • freshnessenum
    neweroldersameunknown

    Default "unknown"

  • idempotencyKeystringRequired

    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

curl https://app.getoatmilk.com/api/v1/accounting/proposals.create \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "subjectType": "invoice",
  "subjectId": "example",
  "field": "status",
  "proposedValue": {},
  "reasoning": "example"
}'
Response
{
  "data": { … }
}

Try it

Try it

Checks your input with this action’s real schema and answers like the API, with synthetic data. No key needed, and nothing changes.

POST/api/v1/accounting/proposals.create
curl https://app.getoatmilk.com/api/v1/accounting/proposals.create \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "subjectType": "invoice",
  "subjectId": "example",
  "field": "status",
  "proposedValue": {},
  "reasoning": "example"
}'

More in Administration.