Resource Guru

App · 26 actions

Schedule people, rooms and equipment in Resource Guru: book them on projects, add time off and keep clients and projects up to date.

Actions

ActionWhat it does
Add time offBook time off (downtime) for people or resources, between two times on each day from one date to another.
Create a bookingBook people or resources on a project or client, for the same time each working day between two dates.
Create a clientAdd a client that projects and bookings can be for.
Create a projectAdd a project, optionally for a client.
Create a resourceAdd a person, room, piece of equipment or other resource, with the account's default working hours.
Delete a bookingDelete a booking.
Delete a clientDelete a client.
Delete a projectDelete a project.
Delete a resourceDelete a person or resource.
Delete time offDelete time off (downtime).
Get a bookingGet one booking, with its time on each day.
Get a projectGet one project, with its client and team.
Get a resourceGet one person or resource, with their working hours.
Get the connected userGet the Resource Guru user the connection signed in as.
List accountsList the Resource Guru accounts the connected user can reach, with each one's URL ID.
List bookingsList bookings between two days, optionally for some resources or approval states.
List clientsList the account's clients.
List projectsList the account's projects.
List resource typesList the kinds of resource the account has, such as people and meeting rooms.
List resourcesList the account's active people and other resources (rooms, equipment).
List time offList time off (Resource Guru calls it downtime) between two days, optionally for some resources.
List time off typesList the kinds of time off the account uses, such as vacation or sick leave.
Update a bookingChange a booking's days, minutes, start time, project, client or notes.
Update a clientRename a client, change its notes, or archive it.
Update a projectChange a project's name, client, code, dates or notes, or archive it.
Update a resourceChange a resource's name, contact details or notes, or archive it.

Add time off

Book time off (downtime) for people or resources, between two times on each day from one date to another.

Inputs

Resourcesresource_idslistRequired
The people or resources taking time off.
Fromfrom_datedateRequired
The first day off.
Toto_datedateRequired
The last day off.
Start timestart_timetimeRequired
When the time off starts each day, such as 09:00.
End timeend_timetimeRequired
When the time off ends each day, such as 17:00.
Typedowntime_type_idnumber
The kind of time off, such as vacation or sick leave.
Detailsdetailstext
Notes about the time off.

Outputs

dataobject
The response from Resource Guru.
Example output
{
  "data": {
    "account_id": 1,
    "booker_id": 1,
    "created_at": "example",
    "creator_id": 1,
    "deleted": true,
    "details": "example",
    "downtime_type_id": 1,
    "end_time": 1,
    "from": "example",
    "id": 1,
    "is_public_holiday": true,
    "last_updated_by": 1,
    "leave": "example",
    "resource_ids": [
      1
    ],
    "start_time": 1,
    "state": "example",
    "timezone": "example",
    "to": "example",
    "updated_at": "example"
  }
}

Create a booking

Book people or resources on a project or client, for the same time each working day between two dates.

Inputs

Resourcesresource_idslistRequired
The people or resources to book.
Start datestart_datedateRequired
The first day of the booking.
End dateend_datedateRequired
The last day of the booking.
Minutes per daydurationnumberRequired
Minutes booked on each day, such as 240 for four hours.From 1 to 1440.
Start timestart_timetime
When the booking starts each day. Leave empty to book time without a set start.
Projectproject_idnumber
The project the booking is for.
Clientclient_idnumber
The client the booking is for.
Detailsdetailstext
Notes shown on the booking.
Billablebillabletrue/false
Whether the time is billable.
Tentativetentativetrue/false
Mark the booking as tentative.
Allow waiting listallow_waitingtrue/false
Put the booking on the waiting list when the resource isn't free, instead of failing.

Outputs

dataobject
The response from Resource Guru.
Example output
{
  "data": {
    "activity_type_id": 1,
    "aggregated_approval_state": {
      "approved": [
        {
          "booking_id": 1,
          "resolved_by": 1,
          "resource_id": 1
        }
      ],
      "declined": [
        {
          "booking_id": 1,
          "message": "example",
          "resolved_at": "example",
          "resolved_by": 1,
          "resource_id": 1
        }
      ],
      "pending": [
        {
          "booking_id": 1,
          "resource_id": 1
        }
      ],
      "without_approval": [
        {
          "booking_id": 1,
          "resource_id": 1
        }
      ]
    },
    "approval_state": {
      "message": "example",
      "resolved_at": "example",
      "resolved_by": 1,
      "status": "pending"
    },
    "billable": true,
    "booker": {
      "color": "example",
      "email": "example",
      "id": 1,
      "name": "example"
    },
    "booking_type": "duration",
    "client_id": 1,
    "created_at": "example",
    "custom_field_values": {},
    "details": "example",
    "duration": 1,
    "durations": [
      {
        "date": "example",
        "duration": 1,
        "elastic_overtime": [
          {
            "end_time": 1,
            "start_time": 1
          }
        ],
        "end_time": 1,
        "start_time": 1,
        "waiting": true
      }
    ],
    "effort_flexibility": "example",
    "end_date": "example",
    "group_id": 1,
    "id": 1,
    "last_updated_by": 1,
    "notes": "example",
    "partial_waiting": true,
    "project_id": 1,
    "refreshable": true,
    "resource_id": 1,
    "resource_ids": [
      1
    ],
    "rrule": {
      "monthly": {
        "day_selection": {
          "type": "onWeekDay",
          "week": 1,
          "weekday": 1
        },
        "ends": {
          "count": 1,
          "date": "example",
          "type": "date"
        },
        "interval": 1
      },
      "weekly": {
        "ends": {
          "count": 1,
          "date": "example",
          "type": "date"
        },
        "interval": 1,
        "weekday": 1
      },
      "yearly": {
        "day_selection": {
          "month": 1,
          "type": "onWeekDayOfMonth",
          "week": 1,
          "weekday": 1
        },
        "ends": {
          "count": 1,
          "date": "example",
          "type": "date"
        },
        "interval": 1
      }
    },
    "sequence_no": 1,
    "start_date": "example",
    "start_time": 1,
    "tentative": true,
    "timezone": "example",
    "updated_at": "example"
  }
}

Create a client

Add a client that projects and bookings can be for.

Inputs

NamenametextRequired
The client's name.
Notesnotestext
Notes about the client.
Colorcolortext
The client's color, as a hex code such as #3366ff.

Outputs

dataobject
The response from Resource Guru.
Example output
{
  "data": {
    "archived": true,
    "color": "example",
    "created_at": "example",
    "creator_id": 1,
    "custom_field_values": {},
    "deleted": true,
    "deleted_at": "example",
    "id": 1,
    "last_updated_by": 1,
    "name": "example",
    "notes": "example",
    "updated_at": "example",
    "url": "example"
  }
}

Create a project

Add a project, optionally for a client.

Inputs

NamenametextRequired
The project's name.
Clientclient_idnumber
The client the project is for.
Project codeproject_codetext
Your code for the project.
Notesnotestext
Notes about the project.
Start datestart_datedate
When the project starts.
End dateend_datedate
When the project ends.
Billable by defaultdefault_billabletrue/false
Whether bookings on the project are billable unless set otherwise.
Colorcolortext
The project's color, as a hex code such as #3366ff.

Outputs

dataobject
The response from Resource Guru.
Example output
{
  "data": {
    "account": {
      "id": 1,
      "name": "example",
      "url": "example"
    },
    "account_id": 1,
    "activity_type_ids": [
      1
    ],
    "activity_types": [
      {
        "billable": true,
        "id": 1
      }
    ],
    "archived": true,
    "client": {
      "id": 1,
      "name": "example",
      "notes": "example",
      "url": "example"
    },
    "client_id": 1,
    "color": "example",
    "created_at": "example",
    "creator_id": 1,
    "custom_field_values": {},
    "default_billable": true,
    "deleted": true,
    "deleted_at": "example",
    "end_date": "example",
    "id": 1,
    "last_updated_by": 1,
    "name": "example",
    "notes": "example",
    "project_code": "example",
    "start_date": "example",
    "team": [
      {
        "hidden": true,
        "hourly_rate": 1,
        "resource_id": 1
      }
    ],
    "updated_at": "example",
    "url": "example"
  }
}

Create a resource

Add a person, room, piece of equipment or other resource, with the account's default working hours.

Inputs

Resource typeresource_type_idnumberRequired
What kind of resource it is, such as a person or a meeting room.
Namenametext
The resource's name. For a person, their full name.
First namefirst_nametext
A person's first name.
Last namelast_nametext
A person's last name.
Emailemailtext
A person's email address.
Job titlejob_titletext
A person's job title.
Phonephonetext
A person's phone number.
Notesnotestext
Notes about the resource.
Bookablebookabletrue/false
Whether the resource can be booked.

Outputs

dataobject
The response from Resource Guru.
Example output
{
  "data": {
    "account": {
      "id": 1,
      "name": "example",
      "url": "example"
    },
    "archived": true,
    "available_periods": [
      {
        "end_time": 1,
        "start_time": 1,
        "valid_from": "example",
        "valid_until": "example",
        "week_day": 1
      }
    ],
    "bookable": true,
    "booked_client_ids": [
      1
    ],
    "booked_project_ids": [
      1
    ],
    "booking_approver_ids": [
      1
    ],
    "color": "example",
    "created_at": "example",
    "creator_id": 1,
    "custom_attributes": {
      "capacity": "example",
      "phone": "example",
      "registration_number": "example"
    },
    "custom_available_periods": [
      {
        "date": "example",
        "end_time": 1,
        "start_time": 1
      }
    ],
    "email": "example",
    "first_name": "example",
    "human": true,
    "id": 1,
    "image": "example",
    "images": {
      "card": "example",
      "default": "example",
      "header": "example",
      "thumb": "example",
      "tiny": "example"
    },
    "job_title": "example",
    "last_name": "example",
    "last_updated_by": 1,
    "minutes_per_day": 1,
    "name": "example",
    "notes": "example",
    "overtimes": [
      {
        "created_at": "example",
        "creator_id": 1,
        "date": "example",
        "duration": 1,
        "id": 1,
        "resource_id": 1,
        "updated_at": "example"
      }
    ],
    "phone": "example",
    "placeholder_owner_ids": [
      1
    ],
    "resource_type": {
      "id": 1,
      "name": "example",
      "url": "example"
    },
    "selected_custom_field_options": [
      {
        "id": 1,
        "name": "example",
        "value": "example"
      }
    ],
    "timezone": {
      "name": "example",
      "offset": 1
    },
    "updated_at": "example",
    "url": "example",
    "user_id": 1,
    "vacation_allowance": 1
  }
}

Delete a booking

Delete a booking.

Inputs

Booking IDbooking_idnumberRequired
The booking to delete. Use the id from List bookings or Create a booking.

Outputs

dataobject
The response from Resource Guru.
Example output
{
  "data": {
    "deleted": true,
    "id": 1
  }
}

Delete a client

Delete a client.

Inputs

Clientclient_idnumberRequired
The client to delete.

Outputs

dataobject
The response from Resource Guru.
Example output
{
  "data": {
    "deleted": true,
    "id": 1
  }
}

Delete a project

Delete a project.

Inputs

Projectproject_idnumberRequired
The project to delete.

Outputs

dataobject
The response from Resource Guru.
Example output
{
  "data": {
    "deleted": true,
    "id": 1
  }
}

Delete a resource

Delete a person or resource.

Inputs

Resourceresource_idnumberRequired
The resource to delete.

Outputs

dataobject
The response from Resource Guru.
Example output
{
  "data": {
    "deleted": true,
    "id": 1
  }
}

Delete time off

Delete time off (downtime).

Inputs

Time off IDdowntime_idnumberRequired
The time off to delete. Use the id from List time off or Add time off.

Outputs

dataobject
The response from Resource Guru.
Example output
{
  "data": {
    "deleted": true,
    "id": 1
  }
}

Get a booking

Get one booking, with its time on each day.

Inputs

Booking IDbooking_idnumberRequired
The booking. Use the id from List bookings or Create a booking.

Outputs

dataobject
The response from Resource Guru.
Example output
{
  "data": {
    "activity_type_id": 1,
    "aggregated_approval_state": {
      "approved": [
        {
          "booking_id": 1,
          "resolved_by": 1,
          "resource_id": 1
        }
      ],
      "declined": [
        {
          "booking_id": 1,
          "message": "example",
          "resolved_at": "example",
          "resolved_by": 1,
          "resource_id": 1
        }
      ],
      "pending": [
        {
          "booking_id": 1,
          "resource_id": 1
        }
      ],
      "without_approval": [
        {
          "booking_id": 1,
          "resource_id": 1
        }
      ]
    },
    "approval_state": {
      "message": "example",
      "resolved_at": "example",
      "resolved_by": 1,
      "status": "pending"
    },
    "billable": true,
    "booker": {
      "color": "example",
      "email": "example",
      "id": 1,
      "name": "example"
    },
    "booking_type": "duration",
    "client_id": 1,
    "created_at": "example",
    "custom_field_values": {},
    "details": "example",
    "duration": 1,
    "durations": [
      {
        "date": "example",
        "duration": 1,
        "elastic_overtime": [
          {
            "end_time": 1,
            "start_time": 1
          }
        ],
        "end_time": 1,
        "start_time": 1,
        "waiting": true
      }
    ],
    "effort_flexibility": "example",
    "end_date": "example",
    "group_id": 1,
    "id": 1,
    "last_updated_by": 1,
    "notes": "example",
    "partial_waiting": true,
    "project_id": 1,
    "refreshable": true,
    "resource_id": 1,
    "resource_ids": [
      1
    ],
    "rrule": {
      "monthly": {
        "day_selection": {
          "type": "onWeekDay",
          "week": 1,
          "weekday": 1
        },
        "ends": {
          "count": 1,
          "date": "example",
          "type": "date"
        },
        "interval": 1
      },
      "weekly": {
        "ends": {
          "count": 1,
          "date": "example",
          "type": "date"
        },
        "interval": 1,
        "weekday": 1
      },
      "yearly": {
        "day_selection": {
          "month": 1,
          "type": "onWeekDayOfMonth",
          "week": 1,
          "weekday": 1
        },
        "ends": {
          "count": 1,
          "date": "example",
          "type": "date"
        },
        "interval": 1
      }
    },
    "sequence_no": 1,
    "start_date": "example",
    "start_time": 1,
    "tentative": true,
    "timezone": "example",
    "updated_at": "example"
  }
}

Get a project

Get one project, with its client and team.

Inputs

Projectproject_idnumberRequired
The project.

Outputs

dataobject
The response from Resource Guru.
Example output
{
  "data": {
    "account": {
      "id": 1,
      "name": "example",
      "url": "example"
    },
    "account_id": 1,
    "activity_type_ids": [
      1
    ],
    "activity_types": [
      {
        "billable": true,
        "id": 1
      }
    ],
    "archived": true,
    "client": {
      "id": 1,
      "name": "example",
      "notes": "example",
      "url": "example"
    },
    "client_id": 1,
    "color": "example",
    "created_at": "example",
    "creator_id": 1,
    "custom_field_values": {},
    "default_billable": true,
    "deleted": true,
    "deleted_at": "example",
    "end_date": "example",
    "id": 1,
    "last_updated_by": 1,
    "name": "example",
    "notes": "example",
    "project_code": "example",
    "start_date": "example",
    "team": [
      {
        "hidden": true,
        "hourly_rate": 1,
        "resource_id": 1
      }
    ],
    "updated_at": "example",
    "url": "example"
  }
}

Get a resource

Get one person or resource, with their working hours.

Inputs

Resourceresource_idnumberRequired
The person or resource.

Outputs

dataobject
The response from Resource Guru.
Example output
{
  "data": {
    "account": {
      "id": 1,
      "name": "example",
      "url": "example"
    },
    "archived": true,
    "available_periods": [
      {
        "end_time": 1,
        "start_time": 1,
        "valid_from": "example",
        "valid_until": "example",
        "week_day": 1
      }
    ],
    "bookable": true,
    "booked_client_ids": [
      1
    ],
    "booked_project_ids": [
      1
    ],
    "booking_approver_ids": [
      1
    ],
    "color": "example",
    "created_at": "example",
    "creator_id": 1,
    "custom_attributes": {
      "capacity": "example",
      "phone": "example",
      "registration_number": "example"
    },
    "custom_available_periods": [
      {
        "date": "example",
        "end_time": 1,
        "start_time": 1
      }
    ],
    "email": "example",
    "first_name": "example",
    "human": true,
    "id": 1,
    "image": "example",
    "images": {
      "card": "example",
      "default": "example",
      "header": "example",
      "thumb": "example",
      "tiny": "example"
    },
    "job_title": "example",
    "last_name": "example",
    "last_updated_by": 1,
    "minutes_per_day": 1,
    "name": "example",
    "notes": "example",
    "overtimes": [
      {
        "created_at": "example",
        "creator_id": 1,
        "date": "example",
        "duration": 1,
        "id": 1,
        "resource_id": 1,
        "updated_at": "example"
      }
    ],
    "phone": "example",
    "placeholder_owner_ids": [
      1
    ],
    "resource_type": {
      "id": 1,
      "name": "example",
      "url": "example"
    },
    "selected_custom_field_options": [
      {
        "id": 1,
        "name": "example",
        "value": "example"
      }
    ],
    "timezone": {
      "name": "example",
      "offset": 1
    },
    "updated_at": "example",
    "url": "example",
    "user_id": 1,
    "vacation_allowance": 1
  }
}

Get the connected user

Get the Resource Guru user the connection signed in as.

Inputs

None.

Outputs

dataobject
The response from Resource Guru.
Example output
{
  "data": {
    "activation_state": "pending",
    "client_rights": "manage_all",
    "created_at": "example",
    "deleted": true,
    "downtime_rights": "manage_all",
    "email": "example",
    "first_name": "example",
    "id": 1,
    "image": "example",
    "images": {
      "card": "example",
      "default": "example",
      "header": "example",
      "thumb": "example",
      "tiny": "example"
    },
    "last_activity_at": "example",
    "last_login_at": "example",
    "last_logout_at": "example",
    "last_name": "example",
    "last_product_update_read_at": "example",
    "notices": {},
    "owner": true,
    "permissions": "basic_user",
    "project_rights": "manage_all",
    "report_rights": "manage_all",
    "resource_rights": "manage_all",
    "timezone": "example",
    "updated_at": "example"
  }
}

List accounts

List the Resource Guru accounts the connected user can reach, with each one's URL ID.

Inputs

None.

Outputs

datalist
The response from Resource Guru.
Example output
{
  "data": [
    {
      "created_at": "example",
      "dashboard_path": "example",
      "default_booking_approver_ids": [
        1
      ],
      "id": 1,
      "name": "example",
      "owner": {
        "email": "example",
        "id": 1,
        "image": "example",
        "name": "example",
        "timezone": "example"
      },
      "plan": "example",
      "rootdomain": "example",
      "subdomain": "example",
      "updated_at": "example",
      "url": "example"
    }
  ]
}

List bookings

List bookings between two days, optionally for some resources or approval states.

Inputs

Fromstart_datedate
Only bookings starting on or after this day.
Toend_datedate
Only bookings ending on or before this day.
Resourcesresource_idslist
Only bookings for these resources.
Approval statesapproval_stateslist
Only bookings in these approval states.One or more of: pending, approved, declined.
Waiting list onlywaitingtrue/false
Only bookings on the waiting list.
Page sizelimitnumber
How many to return. Leave empty for Resource Guru's default; for resources, clients and projects, 0 returns them all.At least 0.
Skipoffsetnumber
How many to skip, to read the next page.At least 0.

Outputs

datalist
The response from Resource Guru.
Example output
{
  "data": [
    {
      "activity_type_id": 1,
      "aggregated_approval_state": {
        "approved": [
          {
            "booking_id": 1,
            "resolved_by": 1,
            "resource_id": 1
          }
        ],
        "declined": [
          {
            "booking_id": 1,
            "message": "example",
            "resolved_at": "example",
            "resolved_by": 1,
            "resource_id": 1
          }
        ],
        "pending": [
          {
            "booking_id": 1,
            "resource_id": 1
          }
        ],
        "without_approval": [
          {
            "booking_id": 1,
            "resource_id": 1
          }
        ]
      },
      "approval_state": {
        "message": "example",
        "resolved_at": "example",
        "resolved_by": 1,
        "status": "pending"
      },
      "billable": true,
      "booker": {
        "color": "example",
        "email": "example",
        "id": 1,
        "name": "example"
      },
      "booking_type": "duration",
      "client_id": 1,
      "created_at": "example",
      "custom_field_values": {},
      "details": "example",
      "duration": 1,
      "durations": [
        {
          "date": "example",
          "duration": 1,
          "elastic_overtime": [
            {
              "end_time": 1,
              "start_time": 1
            }
          ],
          "end_time": 1,
          "start_time": 1,
          "waiting": true
        }
      ],
      "effort_flexibility": "example",
      "end_date": "example",
      "group_id": 1,
      "id": 1,
      "last_updated_by": 1,
      "notes": "example",
      "partial_waiting": true,
      "project_id": 1,
      "refreshable": true,
      "resource_id": 1,
      "resource_ids": [
        1
      ],
      "rrule": {
        "monthly": {
          "day_selection": {
            "type": "onWeekDay",
            "week": 1,
            "weekday": 1
          },
          "ends": {
            "count": 1,
            "date": "example",
            "type": "date"
          },
          "interval": 1
        },
        "weekly": {
          "ends": {
            "count": 1,
            "date": "example",
            "type": "date"
          },
          "interval": 1,
          "weekday": 1
        },
        "yearly": {
          "day_selection": {
            "month": 1,
            "type": "onWeekDayOfMonth",
            "week": 1,
            "weekday": 1
          },
          "ends": {
            "count": 1,
            "date": "example",
            "type": "date"
          },
          "interval": 1
        }
      },
      "sequence_no": 1,
      "start_date": "example",
      "start_time": 1,
      "tentative": true,
      "timezone": "example",
      "updated_at": "example"
    }
  ]
}

List clients

List the account's clients.

Inputs

Include archivedinclude_archivedtrue/false
Also list archived clients. Resource Guru then lists them all, ignoring paging.
Page sizelimitnumber
How many to return. Leave empty for Resource Guru's default; for resources, clients and projects, 0 returns them all.At least 0.
Skipoffsetnumber
How many to skip, to read the next page.At least 0.

Outputs

datalist
The response from Resource Guru.
Example output
{
  "data": [
    {
      "archived": true,
      "color": "example",
      "created_at": "example",
      "creator_id": 1,
      "custom_field_values": {},
      "deleted": true,
      "deleted_at": "example",
      "id": 1,
      "last_updated_by": 1,
      "name": "example",
      "notes": "example",
      "updated_at": "example",
      "url": "example"
    }
  ]
}

List projects

List the account's projects.

Inputs

Include archivedinclude_archivedtrue/false
Also list archived projects. Resource Guru then lists them all, ignoring paging.
Page sizelimitnumber
How many to return. Leave empty for Resource Guru's default; for resources, clients and projects, 0 returns them all.At least 0.
Skipoffsetnumber
How many to skip, to read the next page.At least 0.

Outputs

datalist
The response from Resource Guru.
Example output
{
  "data": [
    {
      "account": {
        "id": 1,
        "name": "example",
        "url": "example"
      },
      "account_id": 1,
      "activity_type_ids": [
        1
      ],
      "activity_types": [
        {
          "billable": true,
          "id": 1
        }
      ],
      "archived": true,
      "client": {
        "id": 1,
        "name": "example",
        "notes": "example",
        "url": "example"
      },
      "client_id": 1,
      "color": "example",
      "created_at": "example",
      "creator_id": 1,
      "custom_field_values": {},
      "default_billable": true,
      "deleted": true,
      "deleted_at": "example",
      "end_date": "example",
      "id": 1,
      "last_updated_by": 1,
      "name": "example",
      "notes": "example",
      "project_code": "example",
      "start_date": "example",
      "team": [
        {
          "hidden": true,
          "hourly_rate": 1,
          "resource_id": 1
        }
      ],
      "updated_at": "example",
      "url": "example"
    }
  ]
}

List resource types

List the kinds of resource the account has, such as people and meeting rooms.

Inputs

None.

Outputs

datalist
The response from Resource Guru.
Example output
{
  "data": [
    {
      "created_at": "example",
      "custom_attributes": [
        "phone"
      ],
      "custom_fields": [
        {
          "created_at": "example",
          "custom_field_options": {
            "id": 1,
            "value": "example"
          },
          "id": 1,
          "label": "example",
          "name": "example",
          "required": true,
          "resource_type_ids": [
            1
          ],
          "single_select": true,
          "type": "single_select",
          "updated_at": "example"
        }
      ],
      "human": true,
      "id": 1,
      "name": "example",
      "updated_at": "example"
    }
  ]
}

List resources

List the account's active people and other resources (rooms, equipment).

Inputs

Detailsdetailtrue/false
Include each resource's extra details.
Page sizelimitnumber
How many to return. Leave empty for Resource Guru's default; for resources, clients and projects, 0 returns them all.At least 0.
Skipoffsetnumber
How many to skip, to read the next page.At least 0.

Outputs

datalist
The response from Resource Guru.
Example output
{
  "data": [
    {
      "account": {
        "id": 1,
        "name": "example",
        "url": "example"
      },
      "archived": true,
      "available_periods": [
        {
          "end_time": 1,
          "start_time": 1,
          "valid_from": "example",
          "valid_until": "example",
          "week_day": 1
        }
      ],
      "bookable": true,
      "booked_client_ids": [
        1
      ],
      "booked_project_ids": [
        1
      ],
      "booking_approver_ids": [
        1
      ],
      "color": "example",
      "created_at": "example",
      "creator_id": 1,
      "custom_attributes": {
        "capacity": "example",
        "phone": "example",
        "registration_number": "example"
      },
      "custom_available_periods": [
        {
          "date": "example",
          "end_time": 1,
          "start_time": 1
        }
      ],
      "email": "example",
      "first_name": "example",
      "human": true,
      "id": 1,
      "image": "example",
      "images": {
        "card": "example",
        "default": "example",
        "header": "example",
        "thumb": "example",
        "tiny": "example"
      },
      "job_title": "example",
      "last_name": "example",
      "last_updated_by": 1,
      "minutes_per_day": 1,
      "name": "example",
      "notes": "example",
      "overtimes": [
        {
          "created_at": "example",
          "creator_id": 1,
          "date": "example",
          "duration": 1,
          "id": 1,
          "resource_id": 1,
          "updated_at": "example"
        }
      ],
      "phone": "example",
      "placeholder_owner_ids": [
        1
      ],
      "resource_type": {
        "id": 1,
        "name": "example",
        "url": "example"
      },
      "selected_custom_field_options": [
        {
          "id": 1,
          "name": "example",
          "value": "example"
        }
      ],
      "timezone": {
        "name": "example",
        "offset": 1
      },
      "updated_at": "example",
      "url": "example",
      "user_id": 1,
      "vacation_allowance": 1
    }
  ]
}

List time off

List time off (Resource Guru calls it downtime) between two days, optionally for some resources.

Inputs

Fromfrom_datedate
Only time off starting on or after this day.
Toto_datedate
Only time off ending on or before this day.
Resourcesresource_idslist
Only time off for these resources.
Page sizelimitnumber
How many to return. Leave empty for Resource Guru's default; for resources, clients and projects, 0 returns them all.At least 0.
Skipoffsetnumber
How many to skip, to read the next page.At least 0.

Outputs

datalist
The response from Resource Guru.
Example output
{
  "data": [
    {
      "account_id": 1,
      "booker_id": 1,
      "created_at": "example",
      "creator_id": 1,
      "deleted": true,
      "details": "example",
      "downtime_type_id": 1,
      "end_time": 1,
      "from": "example",
      "id": 1,
      "is_public_holiday": true,
      "last_updated_by": 1,
      "leave": "example",
      "resource_ids": [
        1
      ],
      "start_time": 1,
      "state": "example",
      "timezone": "example",
      "to": "example",
      "updated_at": "example"
    }
  ]
}

List time off types

List the kinds of time off the account uses, such as vacation or sick leave.

Inputs

None.

Outputs

datalist
The response from Resource Guru.
Example output
{
  "data": [
    {
      "account_id": 1,
      "created_at": "example",
      "default": true,
      "id": 1,
      "name": "example",
      "updated_at": "example"
    }
  ]
}

Update a booking

Change a booking's days, minutes, start time, project, client or notes. Blank fields are left as they are.

Inputs

Booking IDbooking_idnumberRequired
The booking to change. Use the id from List bookings or Create a booking.
Start datestart_datedate
The new first day.
End dateend_datedate
The new last day.
Minutes per daydurationnumber
Minutes booked on each day.From 1 to 1440.
Start timestart_timetime
When the booking starts each day.
Projectproject_idnumber
The project the booking is for.
Clientclient_idnumber
The client the booking is for.
Detailsdetailstext
Notes shown on the booking.
Billablebillabletrue/false
Whether the time is billable.
Tentativetentativetrue/false
Mark the booking as tentative (true) or confirmed (false).

Outputs

dataobject
The response from Resource Guru.
Example output
{
  "data": {
    "activity_type_id": 1,
    "aggregated_approval_state": {
      "approved": [
        {
          "booking_id": 1,
          "resolved_by": 1,
          "resource_id": 1
        }
      ],
      "declined": [
        {
          "booking_id": 1,
          "message": "example",
          "resolved_at": "example",
          "resolved_by": 1,
          "resource_id": 1
        }
      ],
      "pending": [
        {
          "booking_id": 1,
          "resource_id": 1
        }
      ],
      "without_approval": [
        {
          "booking_id": 1,
          "resource_id": 1
        }
      ]
    },
    "approval_state": {
      "message": "example",
      "resolved_at": "example",
      "resolved_by": 1,
      "status": "pending"
    },
    "billable": true,
    "booker": {
      "color": "example",
      "email": "example",
      "id": 1,
      "name": "example"
    },
    "booking_type": "duration",
    "client_id": 1,
    "created_at": "example",
    "custom_field_values": {},
    "details": "example",
    "duration": 1,
    "durations": [
      {
        "date": "example",
        "duration": 1,
        "elastic_overtime": [
          {
            "end_time": 1,
            "start_time": 1
          }
        ],
        "end_time": 1,
        "start_time": 1,
        "waiting": true
      }
    ],
    "effort_flexibility": "example",
    "end_date": "example",
    "group_id": 1,
    "id": 1,
    "last_updated_by": 1,
    "notes": "example",
    "partial_waiting": true,
    "project_id": 1,
    "refreshable": true,
    "resource_id": 1,
    "resource_ids": [
      1
    ],
    "rrule": {
      "monthly": {
        "day_selection": {
          "type": "onWeekDay",
          "week": 1,
          "weekday": 1
        },
        "ends": {
          "count": 1,
          "date": "example",
          "type": "date"
        },
        "interval": 1
      },
      "weekly": {
        "ends": {
          "count": 1,
          "date": "example",
          "type": "date"
        },
        "interval": 1,
        "weekday": 1
      },
      "yearly": {
        "day_selection": {
          "month": 1,
          "type": "onWeekDayOfMonth",
          "week": 1,
          "weekday": 1
        },
        "ends": {
          "count": 1,
          "date": "example",
          "type": "date"
        },
        "interval": 1
      }
    },
    "sequence_no": 1,
    "start_date": "example",
    "start_time": 1,
    "tentative": true,
    "timezone": "example",
    "updated_at": "example"
  }
}

Update a client

Rename a client, change its notes, or archive it. Blank fields are left as they are.

Inputs

Clientclient_idnumberRequired
The client to change.
Namenametext
The new name.
Notesnotestext
New notes.
Archivedarchivedtrue/false
Archive (true) or restore (false) the client.

Outputs

dataobject
The response from Resource Guru.
Example output
{
  "data": {
    "archived": true,
    "color": "example",
    "created_at": "example",
    "creator_id": 1,
    "custom_field_values": {},
    "deleted": true,
    "deleted_at": "example",
    "id": 1,
    "last_updated_by": 1,
    "name": "example",
    "notes": "example",
    "updated_at": "example",
    "url": "example"
  }
}

Update a project

Change a project's name, client, code, dates or notes, or archive it. Blank fields are left as they are.

Inputs

Projectproject_idnumberRequired
The project to change.
Namenametext
The new name.
Clientclient_idnumber
The client the project is for.
Project codeproject_codetext
The new project code.
Notesnotestext
New notes.
Start datestart_datedate
When the project starts.
End dateend_datedate
When the project ends.
Archivedarchivedtrue/false
Archive (true) or restore (false) the project.

Outputs

dataobject
The response from Resource Guru.
Example output
{
  "data": {
    "account": {
      "id": 1,
      "name": "example",
      "url": "example"
    },
    "account_id": 1,
    "activity_type_ids": [
      1
    ],
    "activity_types": [
      {
        "billable": true,
        "id": 1
      }
    ],
    "archived": true,
    "client": {
      "id": 1,
      "name": "example",
      "notes": "example",
      "url": "example"
    },
    "client_id": 1,
    "color": "example",
    "created_at": "example",
    "creator_id": 1,
    "custom_field_values": {},
    "default_billable": true,
    "deleted": true,
    "deleted_at": "example",
    "end_date": "example",
    "id": 1,
    "last_updated_by": 1,
    "name": "example",
    "notes": "example",
    "project_code": "example",
    "start_date": "example",
    "team": [
      {
        "hidden": true,
        "hourly_rate": 1,
        "resource_id": 1
      }
    ],
    "updated_at": "example",
    "url": "example"
  }
}

Update a resource

Change a resource's name, contact details or notes, or archive it. Blank fields are left as they are.

Inputs

Resourceresource_idnumberRequired
The resource to change.
Namenametext
The new name.
Job titlejob_titletext
The new job title.
Phonephonetext
The new phone number.
Notesnotestext
New notes.
Bookablebookabletrue/false
Whether the resource can be booked.
Archivedarchivedtrue/false
Archive (true) or restore (false) the resource.

Outputs

dataobject
The response from Resource Guru.
Example output
{
  "data": {
    "account": {
      "id": 1,
      "name": "example",
      "url": "example"
    },
    "archived": true,
    "available_periods": [
      {
        "end_time": 1,
        "start_time": 1,
        "valid_from": "example",
        "valid_until": "example",
        "week_day": 1
      }
    ],
    "bookable": true,
    "booked_client_ids": [
      1
    ],
    "booked_project_ids": [
      1
    ],
    "booking_approver_ids": [
      1
    ],
    "color": "example",
    "created_at": "example",
    "creator_id": 1,
    "custom_attributes": {
      "capacity": "example",
      "phone": "example",
      "registration_number": "example"
    },
    "custom_available_periods": [
      {
        "date": "example",
        "end_time": 1,
        "start_time": 1
      }
    ],
    "email": "example",
    "first_name": "example",
    "human": true,
    "id": 1,
    "image": "example",
    "images": {
      "card": "example",
      "default": "example",
      "header": "example",
      "thumb": "example",
      "tiny": "example"
    },
    "job_title": "example",
    "last_name": "example",
    "last_updated_by": 1,
    "minutes_per_day": 1,
    "name": "example",
    "notes": "example",
    "overtimes": [
      {
        "created_at": "example",
        "creator_id": 1,
        "date": "example",
        "duration": 1,
        "id": 1,
        "resource_id": 1,
        "updated_at": "example"
      }
    ],
    "phone": "example",
    "placeholder_owner_ids": [
      1
    ],
    "resource_type": {
      "id": 1,
      "name": "example",
      "url": "example"
    },
    "selected_custom_field_options": [
      {
        "id": 1,
        "name": "example",
        "value": "example"
      }
    ],
    "timezone": {
      "name": "example",
      "offset": 1
    },
    "updated_at": "example",
    "url": "example",
    "user_id": 1,
    "vacation_allowance": 1
  }
}

On this page