The following macros are not currently supported in the header:
  • style

GET /activities/allocations

Get Time Allocations

Resource URL

GET /activities/allocations

Parameters

Table of allowed parameters.

_fieldspartial stringAllows you to specify optional fields and linked objects to include in the response.
_filterspartial stringFilter the allocation sum. See activity filters.

Handling the response

Below is a table of available response fields and objects that are returned within the response object of the returned object. The optional fields and objects can be requested in the _fields parameter; see included examples. Underlined values are default.

billableunsignedTotal billable time for all activities found (in seconds)
nonbillableunsignedTotal non-billable time for all activities found (in seconds)
chargeddoubleThe total value charged.

Don't see a field you're after? Please feel free to let us know. Keep in mind these are based on a group of activities. For example, we could add an optional field for the first date logged value.

Sample Response

GET /activities/allocations.json?_filters=owner_type(staff),owner_id(1),date_logged_before(<timestamp>)

Would return the total time logged for the staff member with id one, logged before the unix <timestamp> value.

{
   "response" : {
         "billable":93612,
		 "nonbillable":14490
   },
   "meta" : {
      "status" : "ok",
      "message" : "Everything executed as expected."
   }
}