Contractor portal

hours.create

Log time: a date (not in the future, and not in a pay period that was already paid), minutes and a description, as a draft to submit with your timesheet. A day can't add up to more than 24 hours. The same work on the same day twice is refused unless confirmDuplicate is true.

POST/api/v1/contractor/hours.create

Permissions

contractor:readcontractor:write

Who can call it

contractor

Retries

Idempotency key required

MCP

contractor_hours_create

Fields

  • datestring (date)Required

    A date, as YYYY-MM-DD.

  • minutesintegerRequired

    1 to 1440

  • descriptionstringRequired

    A short description.

    1–2000 characters

  • confirmDuplicateboolean
  • 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–150 characters

Example

curl https://app.getoatmilk.com/api/v1/contractor/hours.create \
  -H "Authorization: Bearer $OATMILK_OAUTH_TOKEN" \
  -H "X-Accounting-Organization: $OATMILK_ORGANIZATION_ID" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "date": "2026-09-01",
  "minutes": 90,
  "description": "Synthetic example from the docs"
}'
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/contractor/hours.create
curl https://app.getoatmilk.com/api/v1/contractor/hours.create \
  -H "Authorization: Bearer $OATMILK_OAUTH_TOKEN" \
  -H "X-Accounting-Organization: $OATMILK_ORGANIZATION_ID" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "date": "2026-09-01",
  "minutes": 90,
  "description": "Synthetic example from the docs"
}'

More in Contractor portal.