contractorOps.terms.hours.update
Apply the exact focused hour-limit preview with its basisTermsId, expectedBasisRevision, basisDate, effectiveFrom, reason and hours patch. Preserve rate, pay schedule, dates, clauses and original documents. Explicit mode record_existing records terms already agreed elsewhere; use it only when the person confirms the agreement already permits them. send_amendment sends a separate amendment and keeps existing limits until all required signers sign. A new weekly cap never implies a daily allocation or two-week pooling. Stale previews and waiting or later updates are refused. Returns saved version and actual current terms.
/api/v1/accounting/contractorOps.terms.hours.updatePermissions
Who can call it
Retries
MCP
accounting_contractor_ops_terms_hours_updateFields
contractorIdstring (ID)RequiredThe ID of a contractor, from contractors.list.
hoursobjectRequiredNo other fields
effectiveFromstring (date)RequiredmodeenumRequiredrecord_existingsend_amendmentbasisTermsIdstring (ID)RequiredThe ID of the related record.
expectedBasisRevisionintegerRequiredThe related record's current revision, from the last time you read it.
at most 9007199254740991 · greater than 0
basisDatestring (date)RequiredA date, as YYYY-MM-DD.
reasonstringRequiredA short note saying why, kept in the record's history.
10–1000 characters
companySignerobjectNo other fields
idempotencyKeystringRequiredAny 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/contractorOps.terms.hours.update \
-H "Authorization: Bearer $OATMILK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"contractorId": "4d5e6f7a-8b9c-4d0e-8f1a-2b3c4d5e6f7a",
"hours": {
"dailyMaxMinutes": 90
},
"effectiveFrom": "2026-09-01",
"mode": "record_existing",
"basisTermsId": "4d5e6f7a-8b9c-4d0e-8f1a-2b3c4d5e6f7a",
"expectedBasisRevision": 3,
"basisDate": "2026-09-01",
"reason": "Synthetic example from the docs"
}'{
"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.
curl https://app.getoatmilk.com/api/v1/accounting/contractorOps.terms.hours.update \
-H "Authorization: Bearer $OATMILK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"contractorId": "4d5e6f7a-8b9c-4d0e-8f1a-2b3c4d5e6f7a",
"hours": {
"dailyMaxMinutes": 90
},
"effectiveFrom": "2026-09-01",
"mode": "record_existing",
"basisTermsId": "4d5e6f7a-8b9c-4d0e-8f1a-2b3c4d5e6f7a",
"expectedBasisRevision": 3,
"basisDate": "2026-09-01",
"reason": "Synthetic example from the docs"
}'More in Contractors.