# compliance.refresh

Regenerate compliance obligations from the company profile and reminder settings. Adds new deadlines, updates changed dates and wording, marks untouched items whose rule no longer applies as not applicable with a system note, and never deletes items or changes human status, notes or completion. Requires an idempotencyKey.

`POST /api/v1/accounting/compliance.refresh`

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

MCP tool: `accounting_compliance_refresh`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `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/compliance.refresh \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{}'
```

Reference page: https://app.getoatmilk.com/docs/api/compliance.refresh
