Create Total Hours booking

Book a total number of hours across a date range and let Resource Guru place them.

POST https://cotlet.dev/api/v1/resource-guru/resources/{resource_id}/total-hours-bookings

write Confirm

Resource Guru fits the hours into free time inside the window. Hours that do not fit go to the waiting list and the response shows the remainder. A Total Hours booking covers one resource and cannot repeat, so use a placeholder for work you will staff later. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: create_total_hours_booking
NameTypeDescription
resource_id integer required integer One person or placeholder, from list_resources.
start_date string required string First day of the window, YYYY-MM-DD.
end_date string required string Last day of the window, YYYY-MM-DD.
total_minutes integer required integer Total effort in minutes across the whole window.
effort_flexibility string required string How freely hours may be spread: fixed, limited or full.
project_id integer integer Project ID from list_projects.
details string string Notes on the booking.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/resource-guru/resources/1/total-hours-bookings \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"start_date":"start date","end_date":"end date","total_minutes":1,"effort_flexibility":"effort flexibility"}'
Python
result = client.call("resource-guru", "create_total_hours_booking", {"resource_id":1,"start_date":"start date","end_date":"end date","total_minutes":1,"effort_flexibility":"effort flexibility"})
Node.js
const result = await cotlet.call('resource-guru', 'create_total_hours_booking', {"resource_id":1,"start_date":"start date","end_date":"end date","total_minutes":1,"effort_flexibility":"effort flexibility"});
CLI
cotlet call resource-guru create_total_hours_booking --data '{"resource_id":1,"start_date":"start date","end_date":"end date","total_minutes":1,"effort_flexibility":"effort flexibility"}'

Example response

JSON

{
  "id": 48213390,
  "resource_ids": [
    18300
  ],
  "start_date": "2026-11-02",
  "end_date": "2026-12-12",
  "total_minutes": 4800,
  "allocated_minutes": 4800,
  "waiting_minutes": 0,
  "project_id": 703110
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.