Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Get Activity

Resource URL

GET /activities/allocations

Parameters

Table of allowed paramaters.

_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 paramater; 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)

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."
   }
}
  • No labels