# signing.templates.update

Edit a custom template with expectedRevision. Starter templates are read-only; duplicate them to customize. Documents already sent keep the exact version they were sent with.

`POST /api/v1/accounting/signing.templates.update`

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

MCP tool: `accounting_signing_templates_update`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `id` | string (ID) | Yes | The record's ID. |
| `expectedRevision` | integer | Yes | The record's current revision, from the last time you read it. If someone changed the record since, the request is refused with a conflict so you can reload and check before trying again. at most 9007199254740991; greater than 0. |
| `title` | string |  | A short title. 1–200 characters. |
| `description` | string |  | A short description. at most 1000 characters. |
| `kind` | enum |  | Which kind of record or job this is. One of: `nda`, `contractor_agreement`, `signature_request`, `letterhead`, `custom`. |
| `body` | string |  | 1–200000 characters. |
| `editorJson` | map or null |  |  |
| `fields` | array of objects |  | at most 100 items. |
| `fields[].key` | string | Yes | Matches ^[a-zA-Z][a-zA-Z0-9_.]{0,80}$. |
| `fields[].label` | string | Yes | 1–120 characters. |
| `fields[].required` | boolean |  | Default `false`. |
| `fields[].defaultValue` | string |  | at most 5000 characters. |
| `fields[].multiline` | boolean |  |  |
| `fields[].markdown` | boolean |  |  |
| `fields[].help` | string |  | at most 300 characters. |
| `fields[].source` | enum |  | Where the record came from. One of: `company`, `counterparty`, `contractor`, `agreement`. |
| `fields[].type` | enum |  | One of: `date`, `choice`, `email`, `phone`, `address`, `job`. |
| `fields[].options` | array of strings |  | 1–40 items; each 1–120 characters. |
| `fields[].allowOther` | boolean |  |  |
| `signerRoles` | array of objects |  | at most 10 items. |
| `signerRoles[].role` | string | Yes | A person's access level in the company. Matches ^[a-z][a-z0-9_]{0,40}$. |
| `signerRoles[].label` | string | Yes | 1–80 characters. |
| `signerRoles[].partyLabelField` | string | Yes | Matches ^[a-zA-Z][a-zA-Z0-9_.]{0,80}$. |
| `signerRoles[].order` | integer | Yes | 1 to 20. |
| `signerRoles[].defaultInternal` | boolean |  | Default `false`. |
| `letterhead` | boolean |  |  |
| `footer` | string or null |  |  |
| `logoAssetId` | string (ID) or null |  |  |
| `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/signing.templates.update \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
  "expectedRevision": 3
}'
```

Reference page: https://app.getoatmilk.com/docs/api/signing.templates.update
