Time Records
This resource works with Enhanced Billing Mode (EBM) and is backwards compatible with the legacy time records data structures
If you are only working in EBM then you would be better off using the Time Entries resource
Â
The Time Records resource represents system user entered time sheets. Time records MAY be linked to the Actions resources via the Tasks resources. Time Records have both an actual time value and a billable time value. No end timestamp for a time record exists, but is calculated using the "start" field and the "actualHours" field. Time Records are also specific to a division, which can be access via the Divisions resource.
Â
Resource Properties
Scope Parameter | timerecords |
---|---|
Location | /timerecords |
Methods | GET POST PUT DELETE |
Default Page Size | 50 |
Max Page Size | 200 |
Default Includes | None |
Â
Resource Attributes
Â
Field | Description | Format | Required | Field Type | Restrictions | Notes |
---|---|---|---|---|---|---|
startTimestamp | Timestamp representing the start date/time of the record | timestamp | true | default | Â | Â |
actualHours | The total duration of the time record | number | true | default | Â | Cannot be less than zero. |
billableHours | The total number of hours that are to be billed | number | false | default | Â | Cannot be less than zero. |
notes | A description of the time being recorded | string | false | default | Â | Â |
createdTimestamp | Timestamp of when the database record was created | timestamp | false | default | Â | Â |
owner | The system user to whom the time record belongs | string | false | link | Â | Â |
activity | The pre-defined activity associated with the time record | string | false | link | Â | Â |
division | The division to which the time record belongs | string | false | link | Â | Â |
task | The task against which the actual and billable time is logged | string | false | link | Â | Â |
createdBy | The system user who created the time record | string | false | link | read-only | Â |
action | The action this time record is associated with | string | false | link | Â | Â |
rate | The rate override for this time record | string | false | link | Â | Â |
Â
Link Templates
Identifier | Resource | Location Template |
---|---|---|
timerecords.activity | timerecordactivities | /timerecordactivities/{timerecords.activity} |
timerecords.division | divisions | /divisions/{timerecords.division} |
timerecords.task | tasks | /tasks/{timerecords.task} |
timerecords.owner | participants | /participants/{timerecords.owner} |
timerecords.createdBy | participants | /participants/{timerecords.createdBy} |
Â
Errors
Code | Field | Condition |
---|---|---|
TR-01 | billableHours | The billableHours value can't be less than zero. |
TR-02 | actualHours | The actualHours value can't be less than zero. |
TR-03 | owner | The owner is a system user. |
TR-03 | owner | The owner belongs to the specified division. |
TR-04 | task | The task belong to the specified division. |
TR-05 | activity | The activity is available to the owner and division. |