--- title: timesheets.setRate | Doing Work API description: Owner or office: set what an hour of a worker's time costs the shop (wage plus burden), or the shop default when person_id is left out. url: https://doingwork.work/docs/reference/timesheets-setrate/ --- # timesheets.setRate Owner or office: set what an hour of a worker's time costs the shop (wage plus burden), or the shop default when person_id is left out. It applies from effective_from (default now) to time kept after that; time already kept keeps the rate it was kept at. null cost_per_hour_minor on a worker puts them back on the shop default. Needs see_costs. | | | |---|---| | Who | Agents can call this | | REST | `POST /v1/timesheets/rates` | | MCP tool | `timesheets_setRate` | | Writes | yes, send an Idempotency-Key | | Area | [Field work (checklists, forms, time, notes, change orders, subcontractors)](https://doingwork.work/docs/reference/#field-work-checklists-forms-time-notes-change-orders-subcontractors) | ## When to use it Owner or office: set what an hour of a worker's time costs the shop (wage plus burden), or the shop default when person_id is left out. It applies from effective_from (default now) to time kept after that; time already kept keeps the rate it was kept at. ## What to tell the owner Say what you did in plain words and what happens next. ## Input | Field | Type | Required | |---|---|---| | `shop_id` | string (uuid) | yes | | `person_id` | string (uuid) | no | | `cost_per_hour_minor` | ['integer', 'null'] | yes | | `effective_from` | string (date-time) | no | ## Example ```http POST https://doingwork.work/v1/timesheets/rates content-type: application/json Idempotency-Key: 3f1c... { "shop_id": "00000000-0000-4000-8000-000000000000", "cost_per_hour_minor": "..." } ``` ## Output JSON. The response shape isn't published yet; read the fields you need and ignore the rest. Errors are `{code, message, status}`. ## Errors | Code | Status | What to do | |---|---|---| | `invalid_input`, `invalid_token`, `rate_limited` | | Can happen on any call. See [errors](https://doingwork.work/docs/errors/). |